Package com.helger.commons.lang
Interface IHasSize
- All Known Subinterfaces:
ICache<KEYTYPE,,VALUETYPE> ICallbackList<CALLBACKTYPE>,ICommonsCollection<ELEMENTTYPE>,ICommonsList<ELEMENTTYPE>,ICommonsNavigableSet<ELEMENTTYPE>,ICommonsOrderedSet<ELEMENTTYPE>,ICommonsSet<ELEMENTTYPE>,ICommonsSortedSet<ELEMENTTYPE>,IErrorList,IHasByteArray,IMutableCache<KEYTYPE,VALUETYPE>
- All Known Implementing Classes:
ByteArrayInputStreamProvider,ByteArrayWrapper,Cache,CallbackList,CommonsArrayList,CommonsCopyOnWriteArrayList,CommonsCopyOnWriteArraySet,CommonsHashSet,CommonsLinkedHashSet,CommonsLinkedList,CommonsTreeSet,CommonsVector,DateTimeFormatterCache,ErrorList,HttpHeaderMap,InMemoryLogger,LRUSet,MappedCache,NonBlockingByteArrayOutputStream,NonBlockingStack,NonBlockingStringWriter,PDTFormatter.LocalizedDateFormatCache,ReadableResourceByteArray,ReadableResourceString,RegExCache,URLParameterList
public interface IHasSize
Base interface for all objects having a certain size with int precision.
- Author:
- Philip Helger
-
Method Summary
-
Method Details
-
size
- Returns:
- The number of contained elements. Always ≥ 0.
-
isEmpty
boolean isEmpty()- Returns:
trueif no items are present,falseif at least a single item is present.- See Also:
-
isNotEmpty
default boolean isNotEmpty()- Returns:
trueif at least one item is present,falseif no item is present.- See Also:
-