Package org.eolang

Class Data.Value<T>

  • Type Parameters:
    T - The type of data
    All Implemented Interfaces:
    Cloneable, Data<T>, Phi, Term
    Enclosing interface:
    Data<T>

    public static final class Data.Value<T>
    extends PhDefault
    implements Data<T>
    A single value as Phi.
    Since:
    0.1
    • Constructor Detail

      • Value

        public Value​(T value)
    • Method Detail

      • φTerm

        public String φTerm()
        Description copied from interface: Term
        To φ-calculus term, as text.
        Specified by:
        φTerm in interface Term
        Overrides:
        φTerm in class PhDefault
        Returns:
        The expression in φ-calculus
      • take

        public T take()
        Description copied from interface: Data
        Take the data.
        Specified by:
        take in interface Data<T>
        Returns:
        The data