Uses of Class
org.apache.juneau.commons.lang.Holder
Packages that use Holder
Package
Description
Language utilities including value wrappers, version management, string formatting,
state enums, and other common language constructs.
REST Client API
-
Uses of Holder in org.apache.juneau.commons.lang
Subclasses of Holder in org.apache.juneau.commons.langModifier and TypeClassDescriptionclassA simple mutable boolean value.classA simple mutable byte value.classA simple mutable character value.classA simple mutable double value.classA simple mutable float value.classA simple mutable integer value.classA simple mutable long value.classA simple mutable short value.classA simple mutable string value.Methods in org.apache.juneau.commons.lang that return HolderModifier and TypeMethodDescriptionstatic <T> Holder<T>Holder.empty()Creates a new empty value (withnull as the initial value).<T2> Holder<T2>Holder.listener(ValueListener<T> listener) Registers a listener that will be called whenever the value is changed viaset(Object).<T2> Holder<T2>Applies a mapping function to the value if present, returning a newHolderwith the result.static <T> Holder<T>Holder.of(T object) Creates a new value with the specified initial value.Sets the value.Sets the value only if the specified condition istrue .Holder.setIfEmpty(T t) Sets the value only if it is currently empty (null ).Holder.update(UnaryOperator<T> updater) Updates the value in-place using the specified function.Method parameters in org.apache.juneau.commons.lang with type arguments of type Holder -
Uses of Holder in org.apache.juneau.rest.client.classic
Methods in org.apache.juneau.rest.client.classic with parameters of type HolderModifier and TypeMethodDescription<T> RestResponseSame asResponseHeader.as(Class)but sets the value in a mutable for fluent calls.<T> RestResponseSame asResponseHeader.as(Type,Type...)but sets the value in a mutable for fluent calls.<T> RestResponseSame asResponseHeader.as(ClassMeta)but sets the value in a mutable for fluent calls.Same asBasicHeader.asString()but sets the value in a mutable for fluent calls.