Class Solid<T>

  • Type Parameters:
    T - Type of result
    All Implemented Interfaces:
    Scalar<T>

    public final class Solid<T>
    extends Object
    implements Scalar<T>
    Cached and synchronized version of a Scalar.

    Objects of this class are thread safe.

    Since:
    0.24
    See Also:
    Sticky, Synced
    • Constructor Detail

      • Solid

        public Solid​(Scalar<? extends T> origin)
        Ctor.
        Parameters:
        origin - The Scalar to cache and sync
    • Method Detail

      • value

        public T value()
                throws Exception
        Description copied from interface: Scalar
        Convert it to the value.
        Specified by:
        value in interface Scalar<T>
        Returns:
        The value
        Throws:
        Exception - If fails