Package org.refcodes.structure
Interface Containable
-
- All Known Subinterfaces:
CanonicalMap
,CanonicalMap.CanonicalMapBuilder
,CanonicalMap.MutableCanonicalMap
,Container<E>
,Container.ClearableContainer<E>
,Container.MutableContainer<E>
,Dictionary<K,V>
,Dictionary.MutableDictionary<K,V>
,Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>
,PathMap<T>
,PathMap.MutablePathMap<T>
,PathMap.PathMapBuilder<T>
- All Known Implementing Classes:
CanonicalMapBuilderImpl
,CanonicalMapImpl
,PathMapBuilderImpl
,PathMapImpl
public interface Containable
AContainable
is the base functionality provided container (collection). TheContainable
it just informs about the metrics of a container.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEmpty()
Tests whether the accumulation is empty or not.int
size()
Returns the number of data elements contained in the collection.
-
-
-
Method Detail
-
size
int size()
Returns the number of data elements contained in the collection.- Returns:
- An integer representing the number of items stored in the accumulation.
-
isEmpty
boolean isEmpty()
Tests whether the accumulation is empty or not. Returns true if the accumulation is empty, else false is returned.- Returns:
- True if no element is contained in the accumulation - else false is returned.
-
-