|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ref_send.scope.Layout<T>
T - nominal typepublic final class Layout<T>
Structural type of a Scope.
| Field Summary | |
|---|---|
PowerlessArray<java.lang.String> |
names
each member name |
| Constructor Summary | |
|---|---|
Layout(PowerlessArray<java.lang.String> names)
Constructs an instance. |
|
| Method Summary | ||
|---|---|---|
static
|
define(java.lang.String... names)
Defines a new structural type. |
|
boolean |
equals(java.lang.Object o)
Is the given object the same? |
|
int |
find(java.lang.String name)
Finds the index of the named member. |
|
int |
hashCode()
Calculates the hash code. |
|
Scope<T> |
make(java.lang.Object... values)
Constructs a scope. |
|
boolean |
of(Scope<T> scope)
Does a given scope conform to this structural type? |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final PowerlessArray<java.lang.String> names
A member name MUST NOT be either null or "@", and MUST
be unique within the list of member names.
| Constructor Detail |
|---|
public Layout(PowerlessArray<java.lang.String> names)
names - names| Method Detail |
|---|
public static <T> Layout<T> define(java.lang.String... names)
T - nominal typenames - namespublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - compared to object
true if the same, else falsepublic int hashCode()
hashCode in interface SelflesshashCode in class java.lang.Objectpublic Scope<T> make(java.lang.Object... values)
values - Scope.valuespublic boolean of(Scope<T> scope)
scope - instance to checkpublic int find(java.lang.String name)
name - searched for member name
-1 if not found
|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.