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 Set
T - 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:
  • Constructor Details

    • ConverterSet

      public ConverterSet(Collection<F> col, Converter<F,T> convUp, Converter<T,F> convDown)
      Constructor.
      Parameters:
      col - the underlying Collection
      convUp - the Converter from the underlying Set
      convDown - the Converter to the underlying Set
  • Method Details

    • 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 interface Collection<F>
      Specified by:
      equals in interface Set<F>
      Overrides:
      equals in class ConverterCollections.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
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<F>
      Specified by:
      hashCode in interface Set<F>
      Overrides:
      hashCode in class Object