Package org.eolang
Class Param
- java.lang.Object
-
- org.eolang.Param
-
public final class Param extends Object
Param of an object (convenient retrieval mechanism).The job of the utility object is to help our EO objects retrieve attributes from other objects and from their own \rho (owners). On top of retrieval this object also does simple type checking. When an attribute is expected to be of some type, we use
strong(Class)
. This method will throw a runtime exception if types don't match. If just a simple retrieval without type checking is necessary, just use the methodweak()
.- Since:
- 0.20
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
strong(Class<T> type)
Fetch and check type.Object
weak()
Fetch and DON'T check type.
-