galois.objects
Interface Bag<T>

Type Parameters:
T - type of elements contained in bag
All Superinterfaces:
Collection<T>, GObject, Iterable<T>

public interface Bag<T>
extends Collection<T>, GObject

A bag of elements.


Method Summary
 boolean add(T o)
           
 boolean add(T o, byte flags)
           
 boolean addAll(Collection<? extends T> c)
           
 boolean addAll(Collection<? extends T> c, byte flags)
           
 void clear()
          Not supported by this class.
 void clear(byte flags)
          Not supported by this class.
 boolean contains(Object o)
          Not supported by this class.
 boolean contains(Object o, byte flags)
          Not supported by this class.
 boolean containsAll(Collection<?> c)
          Not supported by this class.
 boolean containsAll(Collection<?> c, byte flags)
          Not supported by this class.
 boolean isEmpty()
          Not supported by this class.
 boolean isEmpty(byte flags)
          Not supported by this class.
 Iterator<T> iterator()
          .
 Iterator<T> iterator(byte flags)
          Iterates over all the elements in the bag.
 boolean remove(Object o)
          Not supported by this class.
 boolean remove(Object o, byte flags)
          Not supported by this class.
 boolean removeAll(Collection<?> c)
          Not supported by this class.
 boolean removeAll(Collection<?> c, byte flags)
          Not supported by this class.
 boolean retainAll(Collection<?> c)
          Not supported by this class.
 boolean retainAll(Collection<?> c, byte flags)
          Not supported by this class.
 int size()
          .
 int size(byte flags)
          Number of elements in the bag.
 Object[] toArray()
          Not supported by this class.
 Object[] toArray(byte flags)
          Not supported by this class.
<U> U[]
toArray(U[] a)
          Not supported by this class.
<U> U[]
toArray(U[] a, byte flags)
          Not supported by this class.
 
Methods inherited from interface java.util.Collection
equals, hashCode
 
Methods inherited from interface galois.objects.GObject
access
 

Method Detail

add

boolean add(T o)
Specified by:
add in interface Collection<T>

add

boolean add(T o,
            byte flags)
Parameters:
flags - Galois runtime actions (e.g., conflict detection) that need to be executed upon invocation of this method. See MethodFlag
See Also:
add(Object)

addAll

boolean addAll(Collection<? extends T> c)
Specified by:
addAll in interface Collection<T>

addAll

boolean addAll(Collection<? extends T> c,
               byte flags)
Parameters:
flags - Galois runtime actions (e.g., conflict detection) that need to be executed upon invocation of this method. See MethodFlag
See Also:
addAll(Collection)

clear

void clear()
Not supported by this class.

Specified by:
clear in interface Collection<T>

clear

void clear(byte flags)
Not supported by this class.


contains

boolean contains(Object o)
Not supported by this class.

Specified by:
contains in interface Collection<T>

contains

boolean contains(Object o,
                 byte flags)
Not supported by this class.


containsAll

boolean containsAll(Collection<?> c)
Not supported by this class.

Specified by:
containsAll in interface Collection<T>

containsAll

boolean containsAll(Collection<?> c,
                    byte flags)
Not supported by this class.


isEmpty

boolean isEmpty()
Not supported by this class.

Specified by:
isEmpty in interface Collection<T>

isEmpty

boolean isEmpty(byte flags)
Not supported by this class.


iterator

Iterator<T> iterator()
. Only valid outside parallel execution.

Specified by:
iterator in interface Collection<T>
Specified by:
iterator in interface Iterable<T>

iterator

Iterator<T> iterator(byte flags)
Iterates over all the elements in the bag. Only valid outside parallel execution.

Parameters:
flags - Galois runtime actions (e.g., conflict detection) that need to be executed upon invocation of this method. See MethodFlag
See Also:
iterator()

remove

boolean remove(Object o)
Not supported by this class.

Specified by:
remove in interface Collection<T>

remove

boolean remove(Object o,
               byte flags)
Not supported by this class.


removeAll

boolean removeAll(Collection<?> c)
Not supported by this class.

Specified by:
removeAll in interface Collection<T>

removeAll

boolean removeAll(Collection<?> c,
                  byte flags)
Not supported by this class.


retainAll

boolean retainAll(Collection<?> c)
Not supported by this class.

Specified by:
retainAll in interface Collection<T>

retainAll

boolean retainAll(Collection<?> c,
                  byte flags)
Not supported by this class.


size

int size()
. Only valid outside parallel execution.

Specified by:
size in interface Collection<T>

size

int size(byte flags)
Number of elements in the bag. Only valid outside parallel execution.

Parameters:
flags - Galois runtime actions (e.g., conflict detection) that need to be executed upon invocation of this method. See MethodFlag
Returns:
size of the bag

toArray

Object[] toArray()
Not supported by this class.

Specified by:
toArray in interface Collection<T>

toArray

Object[] toArray(byte flags)
Not supported by this class.


toArray

<U> U[] toArray(U[] a)
Not supported by this class.

Specified by:
toArray in interface Collection<T>

toArray

<U> U[] toArray(U[] a,
                byte flags)
Not supported by this class.