org.terracotta.toolkit.collections
Interface ToolkitSortedSet<E extends Comparable<? super E>>

All Superinterfaces:
Collection<E>, Destroyable, Iterable<E>, Set<E>, SortedSet<E>, ToolkitLockedObject, ToolkitObject, ToolkitSet<E>

public interface ToolkitSortedSet<E extends Comparable<? super E>>
extends SortedSet<E>, ToolkitSet<E>

A toolkit sorted set. The sorted set performs all mutative operations under the write lock from ToolkitLockedObject.getReadWriteLock() and all read operations under the read lock from the same. Objects are sorted according to the natural ordering of the values. The values should implement Comparable

Consult the Toolkit class level docs for more info on behavior regarding destroy.

Trying to add values that are not serializable will throw NotSerializableRuntimeException


Method Summary
 
Methods inherited from interface java.util.SortedSet
comparator, first, headSet, last, subSet, tailSet
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitLockedObject
getReadWriteLock
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject
getName
 
Methods inherited from interface org.terracotta.toolkit.object.Destroyable
destroy, isDestroyed
 



Copyright © 2014 Terracotta, Inc.. All Rights Reserved.