public abstract class StrictFunction1 extends Function1
Zephyr Business Solutions Corp.
Constructor and Description |
---|
StrictFunction1(java.lang.String name)
Create a StrictFunction1 object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.Object o)
Override this method to provide function with one parameter.
|
abstract java.lang.Object |
fn(java.lang.Object obj)
Subclass override this method to provide the function implementation.
|
java.lang.String |
getName()
get the string representation of this function.
|
java.lang.String |
toString()
Returns the string representation.
|
public StrictFunction1(java.lang.String name)
name
- the string representation of this function.public abstract java.lang.Object fn(java.lang.Object obj) throws java.lang.Throwable
obj
- the argument.java.lang.Throwable
public final java.lang.Object call(java.lang.Object o) throws java.lang.Throwable
Function1
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()