Package org.aksw.commons.accessors
Class SingleValuedAccessorFromCollection<T>
java.lang.Object
org.aksw.commons.accessors.SingleValuedAccessorFromCollection<T>
- Type Parameters:
T-
- All Implemented Interfaces:
SingleValuedAccessor<T>
public class SingleValuedAccessorFromCollection<T>
extends Object
implements SingleValuedAccessor<T>
This accessor treats the collection as the source for a single item that can be get or set.
This class is intended to be with collection views.
new SingleValuedAccessorFromCollection(new SetFromMappedPropertyValues(...))
- Author:
- raven Apr 9, 2018
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleValuedAccessorFromCollection(Collection<T> collection) SingleValuedAccessorFromCollection(Collection<T> set, boolean insertNulls) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.accessors.SingleValuedAccessor
convert, getOrDefault
-
Field Details
-
collection
-
insertNulls
protected boolean insertNulls
-
-
Constructor Details
-
SingleValuedAccessorFromCollection
-
SingleValuedAccessorFromCollection
-
-
Method Details
-
get
- Specified by:
getin interfaceSingleValuedAccessor<T>
-
set
- Specified by:
setin interfaceSingleValuedAccessor<T>
-