Java Doc for BooleanKeyCharMap.java in  » Development » PCJ » bak » 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 » Development » PCJ » bak.pcj.map 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


bak.pcj.map.BooleanKeyCharMap

All known Subclasses:   bak.pcj.adapter.MapToBooleanKeyCharMapAdapter,  bak.pcj.map.AbstractBooleanKeyCharMap,
BooleanKeyCharMap
public interface BooleanKeyCharMap (Code)
This interface represents maps from boolean values to char 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.BooleanKeyCharMapIterator
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(boolean key)
     Indicates whether this map contains a mapping from a specified key.
 booleancontainsValue(char value)
     Indicates whether this map contains a mapping to a specified value.
Parameters:
  value - the value to test for.
 BooleanKeyCharMapIteratorentries()
     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.
 charget(boolean key)
     Maps a specified key to a value.
 inthashCode()
     Returns a hash code value for this map.
 booleanisEmpty()
     Indicates whether this map is empty.
 BooleanSetkeySet()
     Returns a set view of the keys of this map.
 charlget()
     Returns the last value corresponding to a positive result from BooleanKeyCharMap.containsKey(boolean) containsKey(boolean) .
 charput(boolean key, char value)
     Adds a mapping from a specified key to a specified value to this map.
 voidputAll(BooleanKeyCharMap map)
     Adds all mappings from a specified map to this map.
 charremove(boolean 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.
 chartget(boolean key)
     Maps a specified key to a value.
 voidtrimToSize()
     Minimizes the memory used by this map.
 CharCollectionvalues()
     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(boolean 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 BooleanKeyCharMap.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:   BooleanKeyCharMap.lget()



containsValue
boolean containsValue(char 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
BooleanKeyCharMapIterator 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
char get(boolean 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:   BooleanKeyCharMap.tget(boolean)
See Also:   BooleanKeyCharMap.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
BooleanSet 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
char lget()(Code)
Returns the last value corresponding to a positive result from BooleanKeyCharMap.containsKey(boolean) containsKey(boolean) . 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 of BooleanKeyCharMap.containsKey(boolean) containsKey(boolean).
throws:
  IllegalStateException - if BooleanKeyCharMap.containsKey(boolean) containsKey(boolean) hasnot been called or the last call resulted ina return value of false.
See Also:   BooleanKeyCharMap.get(boolean)
See Also:   BooleanKeyCharMap.tget(boolean)
See Also:   BooleanKeyCharMap.containsKey(boolean)



put
char put(boolean key, char 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(BooleanKeyCharMap 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
char remove(boolean 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
char tget(boolean 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:   BooleanKeyCharMap.get(boolean)
See Also:   BooleanKeyCharMap.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
CharCollection 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.