Package alluxio

Class DefaultSupplier

  • All Implemented Interfaces:
    java.util.function.Supplier<java.lang.Object>

    public class DefaultSupplier
    extends java.lang.Object
    implements java.util.function.Supplier<java.lang.Object>
    Supplier for a configuration property default.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultSupplier​(java.util.function.Supplier<java.lang.Object> supplier, java.lang.String description)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get()  
      java.lang.String getDescription()  
      • Methods inherited from class java.lang.Object

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

      • DefaultSupplier

        public DefaultSupplier​(java.util.function.Supplier<java.lang.Object> supplier,
                               java.lang.String description)
        Parameters:
        supplier - the value
        description - a description of the default value
    • Method Detail

      • get

        public java.lang.Object get()
        Specified by:
        get in interface java.util.function.Supplier<java.lang.Object>
      • getDescription

        public java.lang.String getDescription()
        Returns:
        a description of how the default value is determined