Package com.tangosol.util
Class ConverterCollections.ConverterSet<F,T>
- java.lang.Object
-
- com.tangosol.util.ConverterCollections.ConverterCollection<F,T>
-
- com.tangosol.util.ConverterCollections.ConverterSet<F,T>
-
- Type Parameters:
F
- the type of elements in the underlying SetT
- the type that the elements should be converted to
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,Set<T>
- Direct Known Subclasses:
ConverterCollections.ConverterSortedSet
- Enclosing class:
- ConverterCollections
public static class ConverterCollections.ConverterSet<F,T> extends ConverterCollections.ConverterCollection<F,T> implements Set<T>, Serializable
A Converter Set views an underlying Set through a Converter.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterCollection
m_col, m_convDown, m_convUp
-
-
Constructor Summary
Constructors Constructor Description ConverterSet(Collection<F> col, Converter<F,T> convUp, Converter<T,F> convDown)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares the specified object with this collection for equality.int
hashCode()
-
Methods inherited from class com.tangosol.util.ConverterCollections.ConverterCollection
add, addAll, clear, contains, containsAll, getCollection, getConverterDown, getConverterUp, instantiateCollection, instantiateIterator, invalidate, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Compares the specified object with this collection for equality.Obeys the general contract of Collection.equals.
- Specified by:
equals
in interfaceCollection<F>
- Specified by:
equals
in interfaceSet<F>
- Overrides:
equals
in classConverterCollections.ConverterCollection<F,T>
- Parameters:
o
- Object to be compared for equality with this Collection- Returns:
- true if the specified object is equal to this Collection
-
-