com.atlassian.crowd.integration.directory.cache.model
Class PartialSet<E>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.