os
Class Shared

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--os.Shared

public class Shared
extends java.util.Vector

Implements the shared interprocess communication mechanism that is used by processes in the operating system to communicate with one another.

Version:
1.1
Author:
Thaddeus O. Cooper (cooper@tweenproject.org)
See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Shared()
          Create an empty shared space.
Shared(java.util.Collection c)
          Creates a shared space containing the elements of the specified collection, in the order they are returned by the collection's iterator.
Shared(int initialCapacity)
          Creates an empty shared space with the specified initial capacity.
Shared(int initialCapacity, int capacityIncrement)
          Creates an empty shared space with the specified initial capacity, and capacity increment.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Shared

public Shared()
Create an empty shared space.

Shared

public Shared(java.util.Collection c)
Creates a shared space containing the elements of the specified collection, in the order they are returned by the collection's iterator.
Parameters:
c - the collection to be added.

Shared

public Shared(int initialCapacity)
Creates an empty shared space with the specified initial capacity.
Parameters:
initialCapacity - the initial capacity of the shared space.

Shared

public Shared(int initialCapacity,
              int capacityIncrement)
Creates an empty shared space with the specified initial capacity, and capacity increment.
Parameters:
initialCapacity - the initial capacity of the shared space.
capacityIncrement - the amount by which the capacity is increased when the shared space overflows.