|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.relation.Relations
Constants and utilities related to Relation.
Nested Class Summary | |
static class |
Relations.RelationImm
A serializable immutable view wrapper for a target Relation. |
static class |
Relations.RelationWrapper
A serializable wrapper for a target Relation. |
Method Summary | |
static boolean |
isLive(Relation relation)
Returns true if the relation is non-null and live (relationship is non-null). |
static java.util.Collection |
relations(Relationship relationship,
java.util.Collection delegators,
java.util.Collection retVal)
Gets the relations in a relationship corresponding to a group of delegators. |
static java.util.List |
relations(Relationship relationship,
java.util.List retVal)
Replaces the delegators in a list with the corresponding relations in a relationship. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean isLive(Relation relation)
relation
- The relation. Returns null if null.
public static java.util.Collection relations(Relationship relationship, java.util.Collection delegators, java.util.Collection retVal)
relationship
- The target relationship. Never null.delegators
- Collection of delegators (Object). Never null,
all must be in the relationship.retVal
- Return value object. Collection of relations
(Relation). Never null.
public static java.util.List relations(Relationship relationship, java.util.List retVal)
relationship
- The target relationship. Never null.retVal
- Input and return value object. Inputs delegators
(Object). Outputs relations (Relation). Never null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |