ch.panter.li.bi.util
Class ShieldableSet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<T>
ch.panter.li.bi.util.ShieldableSet<T>
- All Implemented Interfaces:
- ReadOnlySet<T>, Serializable, Cloneable, Iterable<T>, Collection<T>, Set<T>
public class ShieldableSet<T>
- extends HashSet<T>
- implements ReadOnlySet<T>
- See Also:
- Serialized Form
Constructor Summary |
ShieldableSet()
Creates a new empty instance |
ShieldableSet(Collection<T> initialContents)
Creates a new instance and adds the given initial contents. |
ShieldableSet(T... initialContents)
Creates a new instance and adds the given initial contents. |
Method Summary |
T[] |
itemsAsArray(T[] array)
Returns an array containing all items of this instance according to the
contract defined in java.util.Collection#toArray(T[] a) . |
ShieldableSet
public ShieldableSet()
- Creates a new empty instance
ShieldableSet
public ShieldableSet(T... initialContents)
- Creates a new instance and adds the given initial contents.
- Parameters:
initialContents
- the initial contents of this new instance
ShieldableSet
public ShieldableSet(Collection<T> initialContents)
- Creates a new instance and adds the given initial contents.
- Parameters:
initialContents
- the initial contents of this new instance
itemsAsArray
public T[] itemsAsArray(T[] array)
- Description copied from interface:
ReadOnlySet
- Returns an array containing all items of this instance according to the
contract defined in
java.util.Collection#toArray(T[] a)
.
- Specified by:
itemsAsArray
in interface ReadOnlySet<T>
- Parameters:
array
- the target array
- Returns:
- an array containing all items of this instance
Copyright 2007-2007 SourceForge. All Rights Reserved.