jpaul.DataStructs
Class RelFacts.COWRelationFactory<K,V>

java.lang.Object
  extended by jpaul.DataStructs.RelationFactory<K,V>
      extended by jpaul.DataStructs.RelFacts.COWRelationFactory<K,V>
All Implemented Interfaces:
Factory<Relation<K,V>>
Enclosing class:
RelFacts

Deprecated. As of jpaul 2.2, use RelFacts.cow(RelationFactory) instead.

@Deprecated
public static class RelFacts.COWRelationFactory<K,V>
extends RelationFactory<K,V>

COWRelationFactory generates "copy-on-write" (COW) relations.


Constructor Summary
RelFacts.COWRelationFactory(RelationFactory<K,V> underRelFact)
          Deprecated. Creates a COWRelationFactory.
 
Method Summary
 Relation<K,V> create()
          Create a new object of class T.
 Relation<K,V> create(Relation<K,V> rel)
          Default implementation: uses RelationFactory.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

RelFacts.COWRelationFactory

public RelFacts.COWRelationFactory(RelationFactory<K,V> underRelFact)
Deprecated. 
Creates a COWRelationFactory.

Parameters:
underRelFact - Relation factory for generating the relations used in the representation of the generated COW relations.
Method Detail

create

public Relation<K,V> create()
Description copied from interface: Factory
Create a new object of class T. Corresponds to a default constructor.

Specified by:
create in interface Factory<Relation<K,V>>
Specified by:
create in class RelationFactory<K,V>

create

public Relation<K,V> create(Relation<K,V> rel)
Description copied from class: RelationFactory
Default implementation: uses RelationFactory.create() to create an empty relation, and next add each pair from r to the new relation.

Specified by:
create in interface Factory<Relation<K,V>>
Overrides:
create in class RelationFactory<K,V>


Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu