|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpaul.DataStructs.RelationFactory<K,V>
public abstract class RelationFactory<K,V>
RelationFactory
is a relation-specific instance of the
factory pattern.
Various relation factories are available in the class RelFacts
.
Constructor Summary | |
---|---|
RelationFactory()
|
Method Summary | |
---|---|
abstract Relation<K,V> |
create()
Create a new object of class T . |
Relation<K,V> |
create(Relation<K,V> r)
Default implementation: uses create() to create an
empty relation, and next add each pair from r to
the new relation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelationFactory()
Method Detail |
---|
public abstract Relation<K,V> create()
Factory
T
. Corresponds to a
default constructor.
create
in interface Factory<Relation<K,V>>
public Relation<K,V> create(Relation<K,V> r)
create()
to create an
empty relation, and next add each pair from r
to
the new relation.
create
in interface Factory<Relation<K,V>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |