Class ClassCompatibility.ObjectCompatibility
- java.lang.Object
-
- net.officefloor.frame.compatibility.ClassCompatibility.ObjectCompatibility
-
- Enclosing class:
- ClassCompatibility
public class ClassCompatibility.ObjectCompatibility extends java.lang.Object
Provides compatibility for anObject
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassCompatibility.ObjectCompatibility
$(java.lang.String methodName, java.lang.Object... arguments)
UndertakesObject
instanceMethod
.ClassCompatibility.ArgumentCompatibility
arg(java.lang.Class<?> parameterType)
Creates anClassCompatibility.ArgumentCompatibility
for thisObject
.ClassCompatibility.ArgumentCompatibility
arg(java.lang.String parameterTypeName)
Creates anClassCompatibility.ArgumentCompatibility
for thisObject
.<T> T
get(java.lang.Class<? extends T> type)
Obtains the object value.
-
-
-
Method Detail
-
$
public ClassCompatibility.ObjectCompatibility $(java.lang.String methodName, java.lang.Object... arguments)
UndertakesObject
instanceMethod
.- Parameters:
methodName
- Name of the instanceMethod
.arguments
- Arguments for theMethod
.- Returns:
ClassCompatibility.ObjectCompatibility
. Will benull
forvoid
method.
-
arg
public ClassCompatibility.ArgumentCompatibility arg(java.lang.Class<?> parameterType)
Creates anClassCompatibility.ArgumentCompatibility
for thisObject
.- Parameters:
parameterType
-Method
parameter type.- Returns:
ClassCompatibility.ArgumentCompatibility
.
-
arg
public ClassCompatibility.ArgumentCompatibility arg(java.lang.String parameterTypeName)
Creates anClassCompatibility.ArgumentCompatibility
for thisObject
.- Parameters:
parameterTypeName
- Name of theMethod
parameter type.- Returns:
ClassCompatibility.ArgumentCompatibility
.
-
get
public <T> T get(java.lang.Class<? extends T> type)
Obtains the object value.- Parameters:
type
- Type expected.- Returns:
- Object value.
-
-