Package de.javagl.ply
Class ObjectPlySource.Handle<T>
- java.lang.Object
-
- de.javagl.ply.ObjectPlySource.Handle<T>
-
- Type Parameters:
T- The object type
- Enclosing class:
- ObjectPlySource
public static final class ObjectPlySource.Handle<T> extends Object
The handle that is returned fromObjectPlySource.register(String, List)and that allows configuring how the objects are converted into elements.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends Byte>
ObjectPlySource.Handle<T>withByte(String propertyName, Function<T,U> getter)Provide the specified property with the given getter.ObjectPlySource.Handle<T>withByteList(String propertyName, Function<T,byte[]> getter)Provide the specified property with the given getter.<U extends Double>
ObjectPlySource.Handle<T>withDouble(String propertyName, Function<T,U> getter)Provide the specified property with the given getter.ObjectPlySource.Handle<T>withDoubleList(String propertyName, Function<T,double[]> getter)Provide the specified property with the given getter.<U extends Float>
ObjectPlySource.Handle<T>withFloat(String propertyName, Function<T,U> getter)Provide the specified property with the given getter.ObjectPlySource.Handle<T>withFloatList(String propertyName, Function<T,float[]> getter)Provide the specified property with the given getter.<U extends Integer>
ObjectPlySource.Handle<T>withInt(String propertyName, Function<T,U> getter)Provide the specified property with the given getter.ObjectPlySource.Handle<T>withIntList(String propertyName, Function<T,int[]> getter)Provide the specified property with the given getter.<U extends Short>
ObjectPlySource.Handle<T>withShort(String propertyName, Function<T,U> getter)Provide the specified property with the given getter.ObjectPlySource.Handle<T>withShortList(String propertyName, Function<T,short[]> getter)Provide the specified property with the given getter.
-
-
-
Method Detail
-
withByte
public <U extends Byte> ObjectPlySource.Handle<T> withByte(String propertyName, Function<T,U> getter)
Provide the specified property with the given getter.- Type Parameters:
U- The value type- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withShort
public <U extends Short> ObjectPlySource.Handle<T> withShort(String propertyName, Function<T,U> getter)
Provide the specified property with the given getter.- Type Parameters:
U- The value type- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withInt
public <U extends Integer> ObjectPlySource.Handle<T> withInt(String propertyName, Function<T,U> getter)
Provide the specified property with the given getter.- Type Parameters:
U- The value type- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withFloat
public <U extends Float> ObjectPlySource.Handle<T> withFloat(String propertyName, Function<T,U> getter)
Provide the specified property with the given getter.- Type Parameters:
U- The value type- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withDouble
public <U extends Double> ObjectPlySource.Handle<T> withDouble(String propertyName, Function<T,U> getter)
Provide the specified property with the given getter.- Type Parameters:
U- The value type- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withByteList
public ObjectPlySource.Handle<T> withByteList(String propertyName, Function<T,byte[]> getter)
Provide the specified property with the given getter.- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withShortList
public ObjectPlySource.Handle<T> withShortList(String propertyName, Function<T,short[]> getter)
Provide the specified property with the given getter.- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withIntList
public ObjectPlySource.Handle<T> withIntList(String propertyName, Function<T,int[]> getter)
Provide the specified property with the given getter.- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withFloatList
public ObjectPlySource.Handle<T> withFloatList(String propertyName, Function<T,float[]> getter)
Provide the specified property with the given getter.- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
withDoubleList
public ObjectPlySource.Handle<T> withDoubleList(String propertyName, Function<T,double[]> getter)
Provide the specified property with the given getter.- Parameters:
propertyName- The property namegetter- The getter- Returns:
- This handle
-
-