Package ucar.visad.display
Class ConstantMapSet
java.lang.Object
ucar.visad.display.ConstantMapSet
Provides support for a set of ConstantMap-s.
- Version:
- $Revision: 1.15 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this instance.static ConstantMapSet
combine
(ConstantMapSet set1, ConstantMapSet set2) Combines the ConstantMap-s of two sets.Gets clones of the ConstantMap-s of this set as an array.put
(ConstantMap map) Adds a ConstantMap to this set.remove
(DisplayRealType type) Removes aConstantMap
from this set.void
Removes allConstantMap
s from this set.int
size()
Gets the number of elements in this set of ConstantMap-s.toString()
Returns a String representation of this ConstantMapSet.
-
Constructor Details
-
ConstantMapSet
public ConstantMapSet()Constructs from nothing.
-
-
Method Details
-
put
Adds a ConstantMap to this set.- Parameters:
map
- The ConstantMap to be added to this set.- Returns:
- The previous ConstantMap if it exists; otherwise, NULL.
-
remove
Removes aConstantMap
from this set.- Parameters:
type
- The DisplayRealType associated with the ConstantMap to be removed.- Returns:
- The ConstantMap associated with
type
that was removed from this set if it exists; otherwise, NULL.
-
removeAll
public void removeAll()Removes allConstantMap
s from this set. -
combine
Combines the ConstantMap-s of two sets.- Parameters:
set1
- The first set.set2
- The second set.- Returns:
- The union of the two sets. ConstantMap-s in
set2
override ConstantMap-s for the same DisplayRealType inset1
.
-
size
public int size()Gets the number of elements in this set of ConstantMap-s.- Returns:
- The number of ConstantMap-s in this set.
-
getConstantMaps
Gets clones of the ConstantMap-s of this set as an array.- Returns:
- An array of clones of the ConstantMap-s of this set.
-
clone
Returns a clone of this instance. -
toString
Returns a String representation of this ConstantMapSet.
-