Package ru.progrm_jarvis.javacommons.object
package ru.progrm_jarvis.javacommons.object
Helpers and sum-types for
most generic purposes.-
ClassDescriptionMutablePair<F,
S> MutablePair.Simple implementation ofMutablePair.Utilities for common object operations.Pair<F,S> A container holding two values.Pair.SimplePair<F,S> Simple implementation ofPair.Utility for reference-related features.Result<T,E> A tagged union representing either a successful result or an error.Result.Error<T,E> Extensions for Result providing type-specific specializations which are impossible via generic virtual methods.An exception thrown wheneverResult.unwrapError()is called on a successful result.An exception thrown wheneverResult.unwrap()is called on an error result.Holder of anull-error result.Holder of anull-success result.Result.Success<T,E> Representation of asuccessfulresult.A value which may be present (which includesnull) or not-present.A simple value-container which is meant to keep one unchanged value.Empty value-container.An exception thrown wheneverValueContainer.get()is called on an empty value container.Non-empty value-container containingnull.Value-container which provides new values for each request.