jwutil.collections
Class SetRepository

java.lang.Object
  extended by jwutil.collections.CollectionFactory
      extended by jwutil.collections.SetFactory
          extended by jwutil.collections.SetRepository
All Implemented Interfaces:
java.io.Serializable

public class SetRepository
extends SetFactory

Version:
$Id: SetRepository.java 2249 2005-04-29 02:32:27Z joewhaley $
Author:
John Whaley
See Also:
Serialized Form

Nested Class Summary
static class SetRepository.LinkedHashSetFactory
           
static class SetRepository.SharedSet
           
static class SetRepository.SimpleHashSetFactory
           
 
Field Summary
static java.io.PrintStream out
           
static boolean TRACE
           
static boolean USE_HASHCODES
           
static boolean USE_SIZES
           
static boolean VerifyAssertions
           
 
Fields inherited from class jwutil.collections.SetFactory
hashSetFactory, linearSetFactory, treeSetFactory
 
Constructor Summary
SetRepository()
           
 
Method Summary
static java.lang.Object calculateSetIdentifier_disjoint(java.util.Collection sets)
           
static java.lang.Object calculateSetIdentifier(java.util.Collection sets)
           
 SetRepository.SharedSet getUnion(java.util.Collection sets, boolean disjoint)
           
 java.util.Set makeSet(java.util.Collection c)
          Generates a new mutable Set, using the elements of c as a template for its initial contents.
 
Methods inherited from class jwutil.collections.SetFactory
makeCollection, makeCollection, makeSet, makeSet, synchronizedSetFactory
 
Methods inherited from class jwutil.collections.CollectionFactory
makeCollection, noNullCollectionFactory, synchronizedCollectionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_HASHCODES

public static final boolean USE_HASHCODES
See Also:
Constant Field Values

USE_SIZES

public static final boolean USE_SIZES
See Also:
Constant Field Values

VerifyAssertions

public static final boolean VerifyAssertions
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values

out

public static final java.io.PrintStream out
Constructor Detail

SetRepository

public SetRepository()
Method Detail

makeSet

public final java.util.Set makeSet(java.util.Collection c)
Description copied from class: SetFactory
Generates a new mutable Set, using the elements of c as a template for its initial contents.

Specified by:
makeSet in class SetFactory

getUnion

public SetRepository.SharedSet getUnion(java.util.Collection sets,
                                        boolean disjoint)

calculateSetIdentifier_disjoint

public static java.lang.Object calculateSetIdentifier_disjoint(java.util.Collection sets)

calculateSetIdentifier

public static java.lang.Object calculateSetIdentifier(java.util.Collection sets)


Copyright © 2004-2008 SUIF Compiler Group. All Rights Reserved.