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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ConstantSupplier
-
-
Method Details
-
get
- Specified by:
get
in interfacejava.util.function.Supplier<T>
-
hashCode
@Pure public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
@Pure public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getValue
-