fun interface IFoo {
fun foo()
}
val iFoo = IFoo { println("Hello!") } // calling fun interface constructor
val iFooCtor = ::IFoo // callable reference to fun interface constructor
Doesn't support reflection yet.
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides kotlin. |
| protected kotlin. | |
| public int | hashCode()
Returns a hash code value for the object.
|
| public String | toString()
Returns a string representation of the object.
|
| funInterface | back to summary |
|---|---|
| private final Class<T> funInterface | |
| FunInterfaceConstructorReference | back to summary |
|---|---|
| public FunInterfaceConstructorReference(Class<T> funInterface) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides kotlin. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getReflected | back to summary |
|---|---|
| protected kotlin. Overrides kotlin.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides kotlin. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides kotlin. Doc from java. Returns a string representation of the object. | |