Package de.javagl.ply

Class ObjectPlySource.Handle<T>

    • Method Detail

      • withByte

        public <U extends ByteObjectPlySource.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 name
        getter - The getter
        Returns:
        This handle
      • withShort

        public <U extends ShortObjectPlySource.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 name
        getter - The getter
        Returns:
        This handle
      • withInt

        public <U extends IntegerObjectPlySource.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 name
        getter - The getter
        Returns:
        This handle
      • withFloat

        public <U extends FloatObjectPlySource.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 name
        getter - The getter
        Returns:
        This handle
      • withDouble

        public <U extends DoubleObjectPlySource.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 name
        getter - 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 name
        getter - 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 name
        getter - 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 name
        getter - 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 name
        getter - 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 name
        getter - The getter
        Returns:
        This handle