it.unimi.dsi.fastutil.bytes
Class ByteSets.UnmodifiableSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.bytes.ByteCollections.UnmodifiableCollection
      extended by it.unimi.dsi.fastutil.bytes.ByteSets.UnmodifiableSet
All Implemented Interfaces:
ByteCollection, ByteIterable, ByteSet, Serializable, Iterable<Byte>, Collection<Byte>, Set<Byte>
Direct Known Subclasses:
ByteSortedSets.UnmodifiableSortedSet
Enclosing class:
ByteSets

public static class ByteSets.UnmodifiableSet
extends ByteCollections.UnmodifiableCollection
implements ByteSet, Serializable

An unmodifiable wrapper class for sets.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from class it.unimi.dsi.fastutil.bytes.ByteCollections.UnmodifiableCollection
collection
 
Constructor Summary
protected ByteSets.UnmodifiableSet(ByteSet s)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean remove(byte k)
          Removes an element from this set.
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.ByteCollections.UnmodifiableCollection
add, add, addAll, addAll, byteIterator, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toByteArray, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteSet
iterator
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection
add, addAll, byteIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toByteArray, toByteArray
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ByteSets.UnmodifiableSet

protected ByteSets.UnmodifiableSet(ByteSet s)
Method Detail

remove

public boolean remove(byte k)
Description copied from interface: ByteSet
Removes an element from this set.

Note that the corresponding method of the type-specific collection is rem(). This unfortunate situation is caused by the clash with the similarly named index-based method in the List interface.

Specified by:
remove in interface ByteSet
See Also:
Collection.remove(Object)

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<Byte>
Specified by:
equals in interface Set<Byte>
Overrides:
equals in class Object

hashCode

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


Copyright © 2011. All Rights Reserved.