org.springframework.beans.factory.support
Class ManagedSet

java.lang.Object
  extended byorg.springframework.beans.factory.support.ManagedSet
All Implemented Interfaces:
Collection, Set

public class ManagedSet
extends Object
implements Set

Tag collection class used to hold managed Set values, which may include runtime bean references.

Wraps a target Set, which will be a linked set if possible (that is, if running on JDK 1.4 or if Commons Collections 3.x is available).

Since:
21.01.2004
Author:
Juergen Hoeller
See Also:
CollectionFactory.createLinkedSetIfPossible(int)

Constructor Summary
ManagedSet()
           
ManagedSet(int initialCapacity)
           
ManagedSet(Set targetSet)
           
 
Method Summary
 boolean add(Object obj)
           
 boolean addAll(Collection coll)
           
 void clear()
           
 boolean contains(Object obj)
           
 boolean containsAll(Collection coll)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object obj)
           
 boolean removeAll(Collection coll)
           
 boolean retainAll(Collection coll)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] arr)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedSet

public ManagedSet()

ManagedSet

public ManagedSet(int initialCapacity)

ManagedSet

public ManagedSet(Set targetSet)
Method Detail

size

public int size()
Specified by:
size in interface Set

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Set

contains

public boolean contains(Object obj)
Specified by:
contains in interface Set

iterator

public Iterator iterator()
Specified by:
iterator in interface Set

toArray

public Object[] toArray()
Specified by:
toArray in interface Set

toArray

public Object[] toArray(Object[] arr)
Specified by:
toArray in interface Set

add

public boolean add(Object obj)
Specified by:
add in interface Set

remove

public boolean remove(Object obj)
Specified by:
remove in interface Set

containsAll

public boolean containsAll(Collection coll)
Specified by:
containsAll in interface Set

addAll

public boolean addAll(Collection coll)
Specified by:
addAll in interface Set

retainAll

public boolean retainAll(Collection coll)
Specified by:
retainAll in interface Set

removeAll

public boolean removeAll(Collection coll)
Specified by:
removeAll in interface Set

clear

public void clear()
Specified by:
clear in interface Set

hashCode

public int hashCode()
Specified by:
hashCode in interface Set

equals

public boolean equals(Object obj)
Specified by:
equals in interface Set

toString

public String toString()


Copyright (C) 2003-2004 The Spring Framework Project.