Class CollectionAccessorFromCollection<T>
java.lang.Object
org.aksw.commons.accessors.CollectionAccessorFromCollection<T>
- All Implemented Interfaces:
CollectionAccessor<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<T> protected com.google.common.collect.Range<Long> -
Constructor Summary
ConstructorsConstructorDescriptionCollectionAccessorFromCollection(Collection<T> delegate) CollectionAccessorFromCollection(Collection<T> delegate, com.google.common.collect.Range<Long> multiplicity) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CollectionAccessor
convert
-
Field Details
-
delegate
-
multiplicity
-
-
Constructor Details
-
CollectionAccessorFromCollection
-
CollectionAccessorFromCollection
public CollectionAccessorFromCollection(Collection<T> delegate, com.google.common.collect.Range<Long> multiplicity)
-
-
Method Details
-
getMultiplicity
Description copied from interface:CollectionAccessorReturns the multiplicity of the underlying collection This is the minimum and maximum number of items this collection may hold. If a minimum exists, it is assumed that the collection's iterator yields those immutable entries first.- Specified by:
getMultiplicityin interfaceCollectionAccessor<T>- Returns:
-
get
- Specified by:
getin interfaceCollectionAccessor<T>
-