Class ConstantSupplier<A>

java.lang.Object
org.apache.tinkerpop.gremlin.util.function.ConstantSupplier<A>
All Implemented Interfaces:
Serializable, Supplier<A>

public final class ConstantSupplier<A> extends Object implements Supplier<A>, Serializable
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
  • Constructor Details

    • ConstantSupplier

      public ConstantSupplier(A a)
  • Method Details

    • get

      public A get()
      Specified by:
      get in interface Supplier<A>