Package org.eolang

Class Param


  • public final class Param
    extends Object
    Param of an object (convenient retrieval mechanism).
    Since:
    0.20
    • Constructor Detail

      • Param

        public Param​(Phi obj)
        Ctor.
        Parameters:
        obj - The object to fetch \rho from
      • Param

        public Param​(Phi obj,
                     String name)
        Ctor.
        Parameters:
        obj - The object to fetch the attribute from
        name - Name of the attr
    • Method Detail

      • strong

        public <T> T strong​(Class<T> type)
        Fetch and check type.
        Type Parameters:
        T - The type
        Parameters:
        type - The type
        Returns:
        The object
      • weak

        public Object weak()
        Fetch and DON'T check type.
        Returns:
        The object