Java Doc for HashNMap.java in  » Graphic-Library » jcommon-components » org » jfree » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » jcommon components » org.jfree.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.util.HashNMap

HashNMap
public class HashNMap implements Serializable,Cloneable(Code)
The HashNMap can be used to store multiple values by a single key value. The values stored can be retrieved using a direct query or by creating an enumeration over the stored elements.
author:
   Thomas Morgner



Constructor Summary
public  HashNMap()
     Default constructor.

Method Summary
public  booleanadd(Object key, Object val)
     Adds a new key/value pair into this map.
public  voidclear()
     Clears all keys and values of this map.
public  Objectclone()
     Creates a deep copy of this HashNMap.
public  booleancontains(Object value)
     Tests whether this map contains the given key or value.
Parameters:
  value - the value.
public  booleancontainsKey(Object key)
     Tests whether this map contains the given key.
Parameters:
  key - the key.
public  booleancontainsValue(Object value)
     Tests whether this map contains the given value.
Parameters:
  value - the value.
public  booleancontainsValue(Object key, Object value)
     Tests whether this map contains the given value.
protected  ListcreateList()
     Returns a new empty list.
public  Objectget(Object key, int n)
     Retrieves the n-th value registered for an key or null if there was no such key in the list.
public  IteratorgetAll(Object key)
     Returns an iterator over all elements registered to the given key.
Parameters:
  key - the key.
public  ObjectgetFirst(Object key)
     Retrieves the first value registered for an key or null if there was no such key in the list.
Parameters:
  key - the key.
public  intgetValueCount(Object key)
     Returns the number of elements registered with the given key.
Parameters:
  key - the key.
public  SetkeySet()
     Returns all registered keys as set.
public  Iteratorkeys()
     Returns all registered keys as an enumeration.
public  booleanput(Object key, Object val)
     Inserts a new key/value pair into the map.
public  booleanremove(Object key, Object value)
     Removes the key/value pair from the map.
public  voidremoveAll(Object key)
     Removes all elements for the given key.
public  Object[]toArray(Object key, Object[] data)
     Returns the contents for the given key as object array.
public  Object[]toArray(Object key)
     Returns the contents for the given key as object array.


Constructor Detail
HashNMap
public HashNMap()(Code)
Default constructor.




Method Detail
add
public boolean add(Object key, Object val)(Code)
Adds a new key/value pair into this map. If the key is not yet in the map, it gets added to the map and the call is equal to put(Object,Object).
Parameters:
  key - the key.
Parameters:
  val - the value. true, if the value has been added, false otherwise



clear
public void clear()(Code)
Clears all keys and values of this map.



clone
public Object clone() throws CloneNotSupportedException(Code)
Creates a deep copy of this HashNMap. a clone.
throws:
  CloneNotSupportedException - this should never happen.



contains
public boolean contains(Object value)(Code)
Tests whether this map contains the given key or value.
Parameters:
  value - the value. true if the key or value is contained in the map



containsKey
public boolean containsKey(Object key)(Code)
Tests whether this map contains the given key.
Parameters:
  key - the key. true if the key is contained in the map



containsValue
public boolean containsValue(Object value)(Code)
Tests whether this map contains the given value.
Parameters:
  value - the value. true if the value is registered in the map for an key.



containsValue
public boolean containsValue(Object key, Object value)(Code)
Tests whether this map contains the given value.
Parameters:
  value - the value.
Parameters:
  key - the key under which to find the value true if the value is registered in the map for an key.



createList
protected List createList()(Code)
Returns a new empty list. A new empty list.



get
public Object get(Object key, int n)(Code)
Retrieves the n-th value registered for an key or null if there was no such key in the list. An index out of bounds exception is thrown if there are less than n elements registered to this key.
Parameters:
  key - the key.
Parameters:
  n - the index. the object.



getAll
public Iterator getAll(Object key)(Code)
Returns an iterator over all elements registered to the given key.
Parameters:
  key - the key. an iterator.



getFirst
public Object getFirst(Object key)(Code)
Retrieves the first value registered for an key or null if there was no such key in the list.
Parameters:
  key - the key. the value.



getValueCount
public int getValueCount(Object key)(Code)
Returns the number of elements registered with the given key.
Parameters:
  key - the key. the number of element for this key, or 0 if there are no elementsregistered.



keySet
public Set keySet()(Code)
Returns all registered keys as set. a set of keys.



keys
public Iterator keys()(Code)
Returns all registered keys as an enumeration. an enumeration of the keys.



put
public boolean put(Object key, Object val)(Code)
Inserts a new key/value pair into the map. If such a pair already exists, it gets replaced with the given values.
Parameters:
  key - the key.
Parameters:
  val - the value. A boolean.



remove
public boolean remove(Object key, Object value)(Code)
Removes the key/value pair from the map. If the removed entry was the last entry for this key, the key gets also removed.
Parameters:
  key - the key.
Parameters:
  value - the value. true, if removing the element was successfull, false otherwise.



removeAll
public void removeAll(Object key)(Code)
Removes all elements for the given key.
Parameters:
  key - the key.



toArray
public Object[] toArray(Object key, Object[] data)(Code)
Returns the contents for the given key as object array. If there were no objects registered with that key, an empty object array is returned.
Parameters:
  key - the key.
Parameters:
  data - the object array to receive the contents. the contents.



toArray
public Object[] toArray(Object key)(Code)
Returns the contents for the given key as object array. If there were no objects registered with that key, an empty object array is returned.
Parameters:
  key - the key. the contents.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.