Orbital library

orbital.util
Class DelegateSet

java.lang.Object
  extended by orbital.util.DelegateCollection
      extended by orbital.util.DelegateSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.Set
Direct Known Subclasses:
DelegateSortedSet

public class DelegateSet
extends DelegateCollection
implements java.util.Set

A DelegateSet that works as a delegator to sets.

This class simply implements Set and extends DelegateCollection, since a DelegateCollection can also be used as a delegate for Sets due to the identical interfaces differing only by semantics.

Author:
André Platzer
See Also:
Serialized Form

Constructor Summary
protected DelegateSet(java.util.Set delegatee)
          Extend to create a Set delegating to an implementation Set.
 
Method Summary
protected  void setDelegatee(java.util.Collection delegatee)
          Set the delegatee Collection to which operations are delegated.
protected  void setDelegatee(java.util.Set delegatee)
           
 
Methods inherited from class orbital.util.DelegateCollection
add, addAll, clear, contains, containsAll, equals, getDelegatee, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

DelegateSet

protected DelegateSet(java.util.Set delegatee)
Extend to create a Set delegating to an implementation Set.

Parameters:
delegatee - the implementation-Set to that Set operations are delegated.
Method Detail

setDelegatee

protected void setDelegatee(java.util.Set delegatee)

setDelegatee

protected void setDelegatee(java.util.Collection delegatee)
Description copied from class: DelegateCollection
Set the delegatee Collection to which operations are delegated.

Overrides:
setDelegatee in class DelegateCollection
Parameters:
delegatee - the implementation-Collection that Collection operations are delegated to.

Orbital library
1.3.0: 11 Apr 2009

Copyright © 1996-2009 André Platzer
All Rights Reserved.