PkgAgentSystem.Classification
Class ClassificationSet
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.HashSet
|
+--PkgAgentSystem.Classification.ClassificationSet
- All Implemented Interfaces:
- Cloneable, Collection, Serializable, Set
- public class ClassificationSet
- extends HashSet
A set of additional classifications. You can add classifications and iterate through them.
Removal, info, ... through methods of HashSet
.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
AgentClassification
, Serialized Form
Constructor Summary |
ClassificationSet()
Create a new and empty set of classifications |
ClassificationSet
public ClassificationSet()
- Create a new and empty set of classifications
classifications
public Iterator classifications()
- Retrieve an iterator to retrieve all contained classifications.
- Returns:
- an iterator for all elements
add
public boolean add(Object o)
- Add an object to the set. Must implement
AgentClassification
else an IllegalArgumentException
is thrown.
- Overrides:
add
in class HashSet
- Throws:
IllegalArgumentException
- if the object passed does not implement AgentClassification
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.