eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.RDF.model
Class StaticCollection

java.lang.Object
  extended byeworks.RDF.model.StaticCollection
All Implemented Interfaces:
Collection
Direct Known Subclasses:
Statement, TupleImpl

public class StaticCollection
extends Object
implements Collection

A specialized collection for collecting all kind of objects.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

Constructor Summary
StaticCollection()
          Creates a new and empty collection.
 
Method Summary
 boolean add(Object o)
          Do not call this method, as it throws an UnsupportedOperationException.
 boolean addAll(Collection c)
          Do not call this method, as it throws an UnsupportedOperationException.
 void clear()
          Do not call this method, as it throws an UnsupportedOperationException.
 boolean contains(Object o)
          Checks if a given object o exists inside the collection, and returns true if so, else otherwise.
 boolean containsAll(Collection c)
          Checks for a given collection of objects c, if every contained object does also exists inside this collection, and returns true if so, else otherwise.
 boolean isEmpty()
          Returns true if and only if this collection does not contain eny element.
 Iterator iterator()
          Returns an iterator over the elements in this collection.
 boolean remove(Object o)
          Do not call this method, as it throws an UnsupportedOperationException.
 boolean removeAll(Collection c)
          Do not call this method, as it throws an UnsupportedOperationException.
 boolean retainAll(Collection c)
          Do not call this method, as it throws an UnsupportedOperationException.
 int size()
          Returns the number of elements inside the collection.
 Object[] toArray()
          Converts the collection into an array, containing all elements of this collection.
 Object[] toArray(Object[] a)
          Converts the collection into an array, containing all elements of this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

StaticCollection

public StaticCollection()
Creates a new and empty collection.

Method Detail

size

public int size()
Returns the number of elements inside the collection.

Specified by:
size in interface Collection
Returns:
The number of elements inside the collection.

clear

public void clear()
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Collection, but cannot be applied on instances of this class.

Specified by:
clear in interface Collection
Throws:
UnsupportedOperationException - always.

isEmpty

public boolean isEmpty()
Returns true if and only if this collection does not contain eny element.

Specified by:
isEmpty in interface Collection
Returns:
true if and only if this collection is empty.

toArray

public Object[] toArray()
Converts the collection into an array, containing all elements of this collection.

Specified by:
toArray in interface Collection
Returns:
An array containing all elements of the collection.

toArray

public Object[] toArray(Object[] a)
Converts the collection into an array, containing all elements of this collection. The runtime type of the returned array may be specified by the given array a, see Collection.toArray(Object[]).

Specified by:
toArray in interface Collection
Returns:
An array containing all elements of the collection.

add

public boolean add(Object o)
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Collection, but cannot be applied on instances of this class.

Specified by:
add in interface Collection
Throws:
UnsupportedOperationException - always.

contains

public boolean contains(Object o)
Checks if a given object o exists inside the collection, and returns true if so, else otherwise.

Specified by:
contains in interface Collection
Parameters:
o - The object to find.
Returns:
true if and only if o exists inside the collection.

remove

public boolean remove(Object o)
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Collection, but cannot be applied on instances of this class.

Specified by:
remove in interface Collection
Throws:
UnsupportedOperationException - always.

addAll

public boolean addAll(Collection c)
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Collection, but cannot be applied on instances of this class.

Specified by:
addAll in interface Collection
Throws:
UnsupportedOperationException - always.

containsAll

public boolean containsAll(Collection c)
Checks for a given collection of objects c, if every contained object does also exists inside this collection, and returns true if so, else otherwise.

Specified by:
containsAll in interface Collection
Parameters:
c - A collection of objects to find.
Returns:
true if and only if all objects contained inside c exists inside this collection.

removeAll

public boolean removeAll(Collection c)
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Collection, but cannot be applied on instances of this class.

Specified by:
removeAll in interface Collection
Throws:
UnsupportedOperationException - always.

retainAll

public boolean retainAll(Collection c)
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Collection, but cannot be applied on instances of this class.

Specified by:
retainAll in interface Collection
Throws:
UnsupportedOperationException - always.

iterator

public Iterator iterator()
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee).

Specified by:
iterator in interface Collection
Returns:
an Iterator over the elements inside this collection.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/