Package org.aksw.commons.tuple.accessor
Class TupleAccessorRemap<TupleType,ComponentType>
java.lang.Object
org.aksw.commons.tuple.accessor.TupleAccessorRemap<TupleType,ComponentType>
- All Implemented Interfaces:
TupleAccessor<TupleType,,ComponentType> TupleBridge<TupleType,ComponentType>
public class TupleAccessorRemap<TupleType,ComponentType>
extends Object
implements TupleBridge<TupleType,ComponentType>
A forwarding tuple accessor that can remap indices
to shuffle the components
- Author:
- Claus Stadler 11/09/2020
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTupleAccessorRemap(TupleBridge<TupleType, ComponentType> delegate, int[] remap) -
Method Summary
Modifier and TypeMethodDescription<T> TupleTypebuild(T obj, TupleAccessor<? super T, ? extends ComponentType> accessor) Build a domain object from some tuple-like object with its corresponding accessor.intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.tuple.accessor.TupleAccessor
mapMethods inherited from interface org.aksw.commons.tuple.bridge.TupleBridge
build, compact, toComponentArray, validateBuildArg
-
Field Details
-
delegate
-
remap
protected int[] remap
-
-
Constructor Details
-
TupleAccessorRemap
-
-
Method Details
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceTupleBridge<TupleType,ComponentType>
-
get
- Specified by:
getin interfaceTupleAccessor<TupleType,ComponentType>
-
build
Description copied from interface:TupleBridgeBuild a domain object from some tuple-like object with its corresponding accessor.- Specified by:
buildin interfaceTupleBridge<TupleType,ComponentType>
-