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


java.lang.Object
   bak.pcj.adapter.ByteKeyBooleanMapToMapAdapter

ByteKeyBooleanMapToMapAdapter
public class ByteKeyBooleanMapToMapAdapter implements Map(Code)
This class represents adapters of primitive maps from byte values to boolean values to Java Collections Framework maps. The adapter is implemented as a wrapper around a primitive map. Thus, changes to the underlying map are reflected by this map and vice versa.
See Also:   ByteKeyBooleanMap
See Also:   java.util.Map
author:
   Søren Bak
version:
   1.4 20-08-2003 23:03
since:
   1.0

Inner Class :class EntrySet extends AbstractSet
Inner Class :class Entry implements Map.Entry

Field Summary
protected  ByteKeyBooleanMapmap
     The underlying primitive map.

Constructor Summary
public  ByteKeyBooleanMapToMapAdapter(ByteKeyBooleanMap map)
     Creates a new adaption of a primitive map of byte keys and boolean values to a Java Collections Framework map.

Method Summary
public  voidclear()
     Clears this map.
public  booleancontainsKey(Object key)
     Indicates whether this map contains a mapping from a specified key.
public  booleancontainsValue(Object value)
     Indicates whether this map contains a mapping to a specified value.
public  SetentrySet()
     Returns a set view of the entries of this map.
public  booleanequals(Object obj)
     Indicates whether this map is equal to some object.
Parameters:
  obj - the object with which to compare this map.
public  Objectget(Object key)
     Maps a specified key to a value.
public  inthashCode()
     Returns a hash code value for this map.
public  booleanisEmpty()
     Indicates whether this map is empty.
public  SetkeySet()
     Returns a set view of the keys of this map.
public  Objectput(Object key, Object value)
     Adds a mapping from a specified key to a specified value to this map.
public  voidputAll(Map map)
     Adds all mappings from a specified map to this map.
public  Objectremove(Object key)
     Removes the mapping from a specified key from this map. The mapping is removed from the underlying map.
Parameters:
  key - the key whose mapping to remove from this map.
public  intsize()
     Returns the size of this map.
public  Collectionvalues()
     Returns a collection view of the values in this map.

Field Detail
map
protected ByteKeyBooleanMap map(Code)
The underlying primitive map.




Constructor Detail
ByteKeyBooleanMapToMapAdapter
public ByteKeyBooleanMapToMapAdapter(ByteKeyBooleanMap map) throws NullPointerException(Code)
Creates a new adaption of a primitive map of byte keys and boolean values to a Java Collections Framework map.
Parameters:
  map - the underlying primitive map.
throws:
  NullPointerException - if map is null.




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



containsKey
public boolean containsKey(Object key) throws NullPointerException, ClassCastException(Code)
Indicates whether this map contains a mapping from a specified key. This is so, only if the underlying collection contains the unwrapped key.
Parameters:
  key - the key to test for. true if this map contains a mapping fromthe specified key; returns falseotherwise.
throws:
  NullPointerException - if key is null.
throws:
  ClassCastException - if key is not of class Byte Byte.



containsValue
public boolean containsValue(Object value)(Code)
Indicates whether this map contains a mapping to a specified value. For this map to contain an object, the underlying map must contain its unwrapped value.

Note that this map can never contain null values or values of other classes than Boolean Boolean . In those cases, this method will return false.
Parameters:
  value - the value to test for. true if this map contains at least onemapping to the specified value; returnsfalse otherwise.




entrySet
public Set entrySet()(Code)
Returns a set view of the entries of this map. The returned set is a view, so changes to this map are reflected by the returned set and vice versa. All elements of the returned set implements java.util.Map.Entry java.util.Map.Entry . a set view of the entries of this map.



equals
public 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
public Object get(Object key) throws NullPointerException, ClassCastException(Code)
Maps a specified key to a value. Returns null if no mapping exists for the specified key. The returned value will always be of class Boolean Boolean .
Parameters:
  key - the key to map to a value. the value that the specified key maps to, ornull, if no such mapping exists.
throws:
  NullPointerException - if key is null.
throws:
  ClassCastException - if key is not of class Byte Byte.



hashCode
public int hashCode()(Code)
Returns a hash code value for this map. The hash code returned is that of the underlying map. a hash code value for this map.



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



keySet
public Set 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. All elements if the returned set is of class Byte Byte . a set view of the keys of this map.



put
public Object put(Object key, Object value) throws NullPointerException, ClassCastException(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. The mapping is added to the underlying map.
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; returns null otherwise.
throws:
  UnsupportedOperationException - if the operation is not supported by this map.
throws:
  NullPointerException - if key is null;if value is null.
throws:
  ClassCastException - if key is not of class Byte Byte;if value is not of class Boolean Boolean.



putAll
public void putAll(Map map) throws NullPointerException, ClassCastException(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. The mappings are added to the underlying map.
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.
throws:
  NullPointerException - if a key in map is null;if a value in map is null.
throws:
  ClassCastException - if a key in map is not of class Byte Byte;if a value in value is not of class Boolean Boolean.



remove
public Object remove(Object key)(Code)
Removes the mapping from a specified key from this map. The mapping is removed from the underlying 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; returns null otherwise.
throws:
  UnsupportedOperationException - if the operation is not supported by the underlying map.



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



values
public Collection 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. All elements in the returned set is of class Boolean Boolean . a collection view of the values in this map.



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.