Java Doc for DerivedMap.java in  » GIS » GeoTools-2.4.1 » org » geotools » 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 » GIS » GeoTools 2.4.1 » org.geotools.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.AbstractMap
      org.geotools.util.DerivedMap

All known Subclasses:   org.geotools.referencing.crs.UnprefixedMap,
DerivedMap
abstract public class DerivedMap extends AbstractMap implements Serializable(Code)
A map whose keys are derived from an other map. The keys are derived only when requested, which make it possible to backup potentially large maps. Implementations need only to overrides DerivedMap.baseToDerived and DerivedMap.derivedToBase methods. This set do not supports null key, since null is used when no mapping from to this exists. This class is serializable if the underlying set is serializable too.
since:
   2.0
version:
   $Id: DerivedMap.java 22443 2006-10-27 20:47:22Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final protected  Mapbase
     The base map whose keys are derived from.

Constructor Summary
public  DerivedMap(Map base)
     Creates a new derived map from the specified base map.

Method Summary
abstract protected  ObjectbaseToDerived(Object key)
     Transforms a key from the map to a key in this map. If there is no key in the derived map for the specified base key, then this method returns null .
Parameters:
  key - A ley from the map.
public  booleancontainsKey(Object key)
     Returns true if this map contains a mapping for the specified key. The default implementation invokes .containsKey( (key)).
Parameters:
  key - key whose presence in this map is to be tested.
public  booleancontainsValue(Object value)
     Returns true if this map maps one or more keys to this value.
abstract protected  ObjectderivedToBase(Object key)
     Transforms a key from this derived map to a key in the map.
Parameters:
  key - A key in this map.
public  SetentrySet()
     Returns a set view of the mappings contained in this map.
public  Objectget(Object key)
     Returns the value to which this map maps the specified key. The default implementation invokes .get( (key)).
Parameters:
  key - key whose associated value is to be returned.
public  booleanisEmpty()
     Returns true if this map contains no key-value mappings.
public  SetkeySet()
     Returns a set view of the keys contained in this map.
public  Objectput(Object key, Object value)
     Associates the specified value with the specified key in this map. The default implementation invokes .put( (key), value).
Parameters:
  key - key with which the specified value is to be associated.
Parameters:
  value - value to be associated with the specified key.
public  Objectremove(Object key)
     Removes the mapping for this key from this map if present. The default implementation invokes .remove( (key)).
Parameters:
  key - key whose mapping is to be removed from the map.
public  intsize()
     Returns the number of key-value mappings in this map.
public  Collectionvalues()
     Returns a collection view of the values contained in this map.

Field Detail
base
final protected Map base(Code)
The base map whose keys are derived from.
See Also:   DerivedMap.baseToDerived
See Also:   DerivedMap.derivedToBase




Constructor Detail
DerivedMap
public DerivedMap(Map base)(Code)
Creates a new derived map from the specified base map.
Parameters:
  base - The base map.




Method Detail
baseToDerived
abstract protected Object baseToDerived(Object key)(Code)
Transforms a key from the map to a key in this map. If there is no key in the derived map for the specified base key, then this method returns null .
Parameters:
  key - A ley from the map. The key that this view should contains instead of key ,or null .



containsKey
public boolean containsKey(Object key)(Code)
Returns true if this map contains a mapping for the specified key. The default implementation invokes .containsKey( (key)).
Parameters:
  key - key whose presence in this map is to be tested. true if this map contains a mapping for the specified key.



containsValue
public boolean containsValue(Object value)(Code)
Returns true if this map maps one or more keys to this value. The default implementation invokes .containsValue(value). true if this map maps one or more keys to this value.



derivedToBase
abstract protected Object derivedToBase(Object key)(Code)
Transforms a key from this derived map to a key in the map.
Parameters:
  key - A key in this map. The key stored in the map.



entrySet
public Set entrySet()(Code)
Returns a set view of the mappings contained in this map. a set view of the mappings contained in this map.



get
public Object get(Object key)(Code)
Returns the value to which this map maps the specified key. The default implementation invokes .get( (key)).
Parameters:
  key - key whose associated value is to be returned. the value to which this map maps the specified key.



isEmpty
public boolean isEmpty()(Code)
Returns true if this map contains no key-value mappings. true if this map contains no key-value mappings.



keySet
public Set keySet()(Code)
Returns a set view of the keys contained in this map. a set view of the keys contained in this map.



put
public Object put(Object key, Object value) throws UnsupportedOperationException(Code)
Associates the specified value with the specified key in this map. The default implementation invokes .put( (key), value).
Parameters:
  key - key with which the specified value is to be associated.
Parameters:
  value - value to be associated with the specified key. previous value associated with specified key, or null if there was no mapping for key.
throws:
  UnsupportedOperationException - if the map doesn'tsupports the put operation.



remove
public Object remove(Object key) throws UnsupportedOperationException(Code)
Removes the mapping for this key from this map if present. The default implementation invokes .remove( (key)).
Parameters:
  key - key whose mapping is to be removed from the map. previous value associated with specified key, or null if there was no entry for key.
throws:
  UnsupportedOperationException - if the map doesn'tsupports the remove operation.



size
public int size()(Code)
Returns the number of key-value mappings in this map. the number of key-value mappings in this map.



values
public Collection values()(Code)
Returns a collection view of the values contained in this map. a collection view of the values contained in this map.



Methods inherited from java.util.AbstractMap
public void clear()(Code)(Java Doc)
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean containsKey(Object key)(Code)(Java Doc)
public boolean containsValue(Object value)(Code)(Java Doc)
abstract public Set<Entry<K, V>> entrySet()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public V get(Object key)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Set<K> keySet()(Code)(Java Doc)
public V put(K key, V value)(Code)(Java Doc)
public void putAll(Map<? extends K, ? extends V> m)(Code)(Java Doc)
public V remove(Object key)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Collection<V> values()(Code)(Java Doc)

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.