Package blang.core

Class ConstantSupplier<T>

java.lang.Object
blang.core.ConstantSupplier<T>
All Implemented Interfaces:
java.util.function.Supplier<T>

@Data
public class ConstantSupplier<T>
extends java.lang.Object
implements java.util.function.Supplier<T>
  • Constructor Summary

    Constructors
    Constructor Description
    ConstantSupplier​(T value)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    T get()  
    T getValue()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConstantSupplier

      public ConstantSupplier​(T value)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface java.util.function.Supplier<T>
    • hashCode

      @Pure public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      @Pure public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      @Pure public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getValue

      @Pure public T getValue()