Class MapBackedSet<E>

  • All Implemented Interfaces:
    Serializable, Iterable<E>, Collection<E>, Set<E>

    public final class MapBackedSet<E>
    extends AbstractSet<E>
    implements Serializable
    A Set implementation that wraps an actual Map based implementation.
    See Also:
    Serialized Form
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    This class is only provided with Lucene, as Java 5 does not yet support <E> Set<E> Collections.newSetFromMap(Map<E,Boolean>). It will be removed in Lucene 4.