|
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.Object org.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
- names
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- compared to object
true
if the same, else false
public int hashCode()
hashCode
in interface Selfless
hashCode
in class java.lang.Object
public Scope<T> make(java.lang.Object... values)
values
- Scope.values
public 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.