org.processmining.framework.models
Class Bag

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by org.processmining.framework.models.Bag
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set

public class Bag
extends java.util.HashSet

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable
See Also:
Serialized Form

Constructor Summary
Bag()
           
Bag(java.util.Collection c)
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 boolean add(java.lang.Object o, int count)
           
 void clear()
           
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 int getOccurances(java.lang.Object o)
           
 boolean isLessOrEqual(Bag b)
           
 boolean remove(java.lang.Object o)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.HashSet
contains, isEmpty, iterator
 
Methods inherited from class java.util.AbstractSet
hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Bag

public Bag()

Bag

public Bag(java.util.Collection c)
Method Detail

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.Set
Overrides:
add in class java.util.HashSet

add

public boolean add(java.lang.Object o,
                   int count)

clear

public void clear()
Specified by:
clear in interface java.util.Collection
Specified by:
clear in interface java.util.Set
Overrides:
clear in class java.util.HashSet

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.HashSet

getOccurances

public int getOccurances(java.lang.Object o)

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.Set
Overrides:
remove in class java.util.HashSet

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.Set
Overrides:
size in class java.util.HashSet

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.Set
Overrides:
equals in class java.util.AbstractSet

isLessOrEqual

public boolean isLessOrEqual(Bag b)