com.atlassian.crowd.integration.directory.cache.model
Class PartialSet<E>

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.cache.model.PartialSet<E>
All Implemented Interfaces:
java.io.Serializable

public class PartialSet<E>
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PartialSet(java.util.Collection<E> entities, boolean complete)
           
PartialSet(E singleEntity)
           
 
Method Summary
 void add(E entity)
           
 java.util.List<E> asList()
           
 void clear()
           
 boolean contains(E entity)
           
 java.util.Set<E> getUnderlyingSet()
           
 boolean isComplete()
           
 boolean remove(E entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialSet

public PartialSet(E singleEntity)
Parameters:
singleEntity - the single entity to start an incomplete set.

PartialSet

public PartialSet(java.util.Collection<E> entities,
                  boolean complete)
Parameters:
set - the complete set to wrap.
Method Detail

asList

public java.util.List<E> asList()
Returns:
Unmodifiable copy of the Set as a List.

getUnderlyingSet

public java.util.Set<E> getUnderlyingSet()

isComplete

public boolean isComplete()
Returns:
true iff the collection represents the complete set of results.

contains

public boolean contains(E entity)

add

public void add(E entity)

remove

public boolean remove(E entity)

clear

public void clear()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.