Package co.elastic.clients.util
Class ConstantBuilder<V>
java.lang.Object
co.elastic.clients.util.ConstantBuilder<V>
- All Implemented Interfaces:
ObjectBuilder<V>
public class ConstantBuilder<V> extends java.lang.Object implements ObjectBuilder<V>
An object builder that always returns the same value.
-
Constructor Summary
Constructors Constructor Description ConstantBuilder(V value)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConstantBuilder
-
-
Method Details
-
build
- Specified by:
build
in interfaceObjectBuilder<V>
-