Interface ICommonsSortedSet<ELEMENTTYPE>
-
- Type Parameters:
ELEMENTTYPE- Set element type
- All Superinterfaces:
Collection<ELEMENTTYPE>,ICloneable<ICommonsSet<ELEMENTTYPE>>,ICommonsCollection<ELEMENTTYPE>,ICommonsIterable<ELEMENTTYPE>,ICommonsSet<ELEMENTTYPE>,IHasSize,Iterable<ELEMENTTYPE>,Set<ELEMENTTYPE>,SortedSet<ELEMENTTYPE>
- All Known Subinterfaces:
ICommonsNavigableSet<ELEMENTTYPE>
- All Known Implementing Classes:
CommonsTreeSet
public interface ICommonsSortedSet<ELEMENTTYPE> extends SortedSet<ELEMENTTYPE>, ICommonsSet<ELEMENTTYPE>
A specialSortedSetbased interface with extended functionality based onICommonsSet.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SortedSet<ELEMENTTYPE>getAsUnmodifiable()ICommonsSortedSet<ELEMENTTYPE>getClone()default ELEMENTTYPEgetFirst()default ELEMENTTYPEgetFirst(ELEMENTTYPE aDefault)default ELEMENTTYPEgetLast()default ELEMENTTYPEgetLast(ELEMENTTYPE aDefault)-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsCollection
addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMapped
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsSet
createInstance, getAll, getAllInstanceOf, getAllMapped, getAllMapped, replace
-
Methods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, size
-
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 java.util.SortedSet
comparator, first, headSet, last, spliterator, subSet, tailSet
-
-
-
-
Method Detail
-
getFirst
@Nullable default ELEMENTTYPE getFirst()
-
getFirst
@Nullable default ELEMENTTYPE getFirst(@Nullable ELEMENTTYPE aDefault)
-
getLast
@Nullable default ELEMENTTYPE getLast()
-
getLast
@Nullable default ELEMENTTYPE getLast(@Nullable ELEMENTTYPE aDefault)
-
getAsUnmodifiable
@Nonnull @CodingStyleguideUnaware default SortedSet<ELEMENTTYPE> getAsUnmodifiable()
- Specified by:
getAsUnmodifiablein interfaceICommonsCollection<ELEMENTTYPE>- Specified by:
getAsUnmodifiablein interfaceICommonsSet<ELEMENTTYPE>- Returns:
- An unmodifiable version of this collection. Never
null. - See Also:
Collections
-
getClone
@Nonnull @ReturnsMutableCopy ICommonsSortedSet<ELEMENTTYPE> getClone()
- Specified by:
getClonein interfaceICloneable<ELEMENTTYPE>- Returns:
- A 100% deep-copy of the implementing class.
-
-