Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Util.Collections
Class SetRepository  view SetRepository download SetRepository.java

java.lang.Object
  extended byUtil.Collections.CollectionFactory
      extended byUtil.Collections.SetFactory
          extended byUtil.Collections.SetRepository

public class SetRepository
extends SetFactory

Version:
$Id: SetRepository.java,v 1.2 2003/05/12 10:05:21 joewhaley Exp $

Nested Class Summary
static class SetRepository.LinkedHashSetFactory
           
static class SetRepository.SharedSet
           
static class SetRepository.SimpleHashSetFactory
           
 
Field Summary
(package private)  java.util.Map cache
           
(package private)  MapFactory entryFactory
           
static java.io.PrintStream out
           
(package private)  SetFactory setFactory
           
static boolean TRACE
           
static boolean USE_HASHCODES
           
static boolean USE_SIZES
           
static boolean VerifyAssertions
           
 
Constructor Summary
SetRepository()
           
 
Method Summary
(package private) static int calculateHashcode_disjoint(java.util.Collection sets)
           
(package private) static int calculateHashcode(java.util.Collection sets)
           
static java.lang.Object calculateSetIdentifier_disjoint(java.util.Collection sets)
           
static java.lang.Object calculateSetIdentifier(java.util.Collection sets)
           
(package private) static int calculateSize_disjoint(java.util.Collection sets)
           
(package private) static int calculateSize(java.util.Collection sets)
           
(package private) static boolean checkDisjoint(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 Util.Collections.SetFactory
makeCollection, makeCollection, makeSet, makeSet
 
Methods inherited from class Util.Collections.CollectionFactory
makeCollection
 
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

cache

java.util.Map cache

setFactory

SetFactory setFactory

entryFactory

MapFactory entryFactory
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)

checkDisjoint

static boolean checkDisjoint(java.util.Collection sets)

calculateHashcode_disjoint

static int calculateHashcode_disjoint(java.util.Collection sets)

calculateSize_disjoint

static int calculateSize_disjoint(java.util.Collection sets)

calculateHashcode

static int calculateHashcode(java.util.Collection sets)

calculateSize

static int calculateSize(java.util.Collection sets)

calculateSetIdentifier_disjoint

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

calculateSetIdentifier

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