Package no.digipost.util
package no.digipost.util
-
ClassDescriptionAssignment<V>An assignment may or may not be assigned, the assigned value can be retrieved with
Supplier.get()and will returnnullif unassigned, and may be assigned withAssignment.set(Object)if the assignment allows (re-)assignment.AtMostOne<T>This class offers a subtle functionality which is not available in the Collection API of Java: to retrieve the only element that is expected to be present, and, importantly,throw an exception if there are elements that will be discardedif assuming that there is at most one element present.Attribute<V>AnAttributedefines a String-based name (or key) and the type of a value which the name maps to.An immutable collection ofattributes.Builder to incrementally construct an immutableAttributesMap.Switches to indicate behavior other than default.AutoClosed<T>An adapter to enable any arbitrary object to be managed by the try-with-resources facility of Java >= 7, i.e.ChainableAssignment<V,C> AnAssignmentwith the added ability to chain several assignments withChainableAssignment.is(Object).JustA<T>Base class for creating simple "typed primitives" value classes.Base class for creating simple "typedlong" value classes, for cases when you do not want to pass around simplelongs for numbers that has certain (business-) semantics in your application, even though alongdoes adequately express the value.ThrowingAutoClosed<T,X extends Exception> An adapter to enable any arbitrary object to be managed by the try-with-resources facility of Java >= 7, i.e.ASupplierwhich is alsoViewableAsOptional.An object which was attempted to be viewed as aOptionalrepresentation of itself contained more than one element, and is thus not applicable for such conversion.