Class VabOperationsProvider.Property

  • Enclosing class:
    VabOperationsProvider

    private static class VabOperationsProvider.Property
    extends java.lang.Object
    Represents a property consisting of a consumer and a supplier function. Both functions may map to attributes or accessor functions depending on the implementing objet.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Supplier<java.lang.Object> get  
      private java.util.function.Consumer<java.lang.Object> set  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Property​(java.util.function.Supplier<java.lang.Object> get, java.util.function.Consumer<java.lang.Object> set)
      Creates a property instance.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • set

        private java.util.function.Consumer<java.lang.Object> set
      • get

        private java.util.function.Supplier<java.lang.Object> get
    • Constructor Detail

      • Property

        private Property​(java.util.function.Supplier<java.lang.Object> get,
                         java.util.function.Consumer<java.lang.Object> set)
        Creates a property instance. Theoretically, either entry may be null for read-only/write-only properties, but this must be, however, reflected in the AAS so that no wrong can access happens.
        Parameters:
        get - the supplier providing read access to the property value (may be null)
        set - the consumer providing write access to the property value (may be null)