Java Doc for IntKeyIntMap.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » pcj » map » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.pcj.map 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.uwyn.rife.pcj.map.IntKeyIntMap

All known Subclasses:   com.uwyn.rife.pcj.map.AbstractIntKeyIntMap,  com.uwyn.rife.pcj.map.IntKeyIntOpenHashMap,  com.uwyn.rife.pcj.map.IntKeyIntChainedHashMap,
IntKeyIntMap
public interface IntKeyIntMap (Code)
This interface represents maps from int values to int values. It is not possible to obtain a set of entries from primitive collections maps. Instead, an iterator over entries can be obtained. This removes a number of implementation constraints imposed by having to implement an entry interface.
See Also:   bak.pcj.map.IntKeyIntMapIterator
See Also:   java.util.Map
author:
   Søren Bak
version:
   1.1 2003/6/1
since:
   1.0




Method Summary
 voidclear()
     Clears this map.
 booleancontainsKey(int key)
     Indicates whether this map contains a mapping from a specified key.
 booleancontainsValue(int value)
     Indicates whether this map contains a mapping to a specified value.
Parameters:
  value - the value to test for.
 IntKeyIntMapIteratorentries()
     Returns an iterator over the entries of this map.
 booleanequals(Object obj)
     Indicates whether this map is equal to some object.
Parameters:
  obj - the object with which to compare this map.
 intget(int key)
     Maps a specified key to a value.
 inthashCode()
     Returns a hash code value for this map.
 booleanisEmpty()
     Indicates whether this map is empty.
 IntSetkeySet()
     Returns a set view of the keys of this map.
 intlget()
     Returns the last value corresponding to a positive result from IntKeyIntMap.containsKey(int) containsKey(int) .
 intput(int key, int value)
     Adds a mapping from a specified key to a specified value to this map.
 voidputAll(IntKeyIntMap map)
     Adds all mappings from a specified map to this map.
 intremove(int key)
     Removes the mapping from a specified key from this map.
Parameters:
  key - the key whose mapping to remove from this map.
 intsize()
     Returns the size of this map.
 inttget(int key)
     Maps a specified key to a value.
 voidtrimToSize()
     Minimizes the memory used by this map.
 IntCollectionvalues()
     Returns a collection view of the values in this map.



Method Detail
clear
void clear()(Code)
Clears this map.
throws:
  UnsupportedOperationException - if the operation is not supported by this map.



containsKey
boolean containsKey(int key)(Code)
Indicates whether this map contains a mapping from a specified key. If the key is contained in this map, a succeeding call to IntKeyIntMap.lget() lget() will return the corresponding value.
Parameters:
  key - the key to test for. true if this map contains a mapping fromthe specified key; returns falseotherwise.
See Also:   IntKeyIntMap.lget()



containsValue
boolean containsValue(int value)(Code)
Indicates whether this map contains a mapping to a specified value.
Parameters:
  value - the value to test for. true if this map contains at least onemapping to the specified value; returnsfalse otherwise.



entries
IntKeyIntMapIterator entries()(Code)
Returns an iterator over the entries of this map. It is possible to remove entries from this map using the iterator provided that the concrete map supports removal of entries. an iterator over the entries of this map.



equals
boolean equals(Object obj)(Code)
Indicates whether this map is equal to some object.
Parameters:
  obj - the object with which to compare this map. true if this map is equal to thespecified object; returns falseotherwise.



get
int get(int key)(Code)
Maps a specified key to a value. Returns a default value as specified by the MapDefaults class if no mapping exists for the specified key.
Parameters:
  key - the key to map to a value. the value that the specified key maps to, ora default value, if no such mapping exists.
See Also:   MapDefaults
See Also:   IntKeyIntMap.tget(int)
See Also:   IntKeyIntMap.lget()



hashCode
int hashCode()(Code)
Returns a hash code value for this map. a hash code value for this map.



isEmpty
boolean isEmpty()(Code)
Indicates whether this map is empty. true if this map is empty; returnsfalse otherwise.



keySet
IntSet keySet()(Code)
Returns a set view of the keys of this map. Removals from the returned set removes the corresponding entries in this map. Changes to the map are reflected in the set. a set view of the keys of this map.



lget
int lget()(Code)
Returns the last value corresponding to a positive result from IntKeyIntMap.containsKey(int) containsKey(int) . This is useful for checking checking the existence of a mapping while avoiding two lookups on the same key. the value corresponding to the key from thelast invokation ofIntKeyIntMap.containsKey(int) containsKey(int).
throws:
  IllegalStateException - if IntKeyIntMap.containsKey(int) containsKey(int) hasnot been called or the last call resulted ina return value of false.
See Also:   IntKeyIntMap.get(int)
See Also:   IntKeyIntMap.tget(int)
See Also:   IntKeyIntMap.containsKey(int)



put
int put(int key, int value)(Code)
Adds a mapping from a specified key to a specified value to this map. If a mapping already exists for the specified key it is overwritten by the new mapping.
Parameters:
  key - the key of the mapping to add to this map.
Parameters:
  value - the value of the mapping to add to this map. the old value if amapping from the specified key already existedin this map; otherwise returns a default value asspecified by the MapDefaults class.
throws:
  UnsupportedOperationException - if the operation is not supported by this map.
See Also:   MapDefaults



putAll
void putAll(IntKeyIntMap map)(Code)
Adds all mappings from a specified map to this map. Any existing mappings whose keys collide with a new mapping is overwritten by the new mapping.
Parameters:
  map - the map whose mappings to add to this map.
throws:
  NullPointerException - if map is null.
throws:
  UnsupportedOperationException - if the operation is not supported by this map.



remove
int remove(int key)(Code)
Removes the mapping from a specified key from this map.
Parameters:
  key - the key whose mapping to remove from this map. the old value if amapping from the specified key already existedin this map; otherwise returns a default value asspecified by the MapDefaults class.
throws:
  UnsupportedOperationException - if the operation is not supported by this map.
See Also:   MapDefaults



size
int size()(Code)
Returns the size of this map. The size is defined as the number of mappings from keys to values. the size of this map.



tget
int tget(int key)(Code)
Maps a specified key to a value. This method should be used when the key is known to be in the map.
Parameters:
  key - the key to map to a value. the value that the specified key maps to.
throws:
  NoSuchMappingException - if the specified key does not map to any value.
See Also:   IntKeyIntMap.get(int)
See Also:   IntKeyIntMap.lget()



trimToSize
void trimToSize()(Code)
Minimizes the memory used by this map. The exact operation of this method depends on the class implementing it. Implementors may choose to ignore it completely.



values
IntCollection values()(Code)
Returns a collection view of the values in this map. The collection is not modifiable, but changes to the map are reflected in the collection. a collection view of the values in this map.



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