当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
ManagedSet (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.beans.factory.support
Class ManagedSet
java.lang.Object
org.springframework.beans.factory.support.ManagedSet
- All Implemented Interfaces:
- Iterable, 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)
ManagedSet
public ManagedSet()
ManagedSet
public ManagedSet(int initialCapacity)
ManagedSet
public ManagedSet(Set targetSet)
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface Set
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
- Specified by:
isEmpty
in interface Set
contains
public boolean contains(Object obj)
- Specified by:
contains
in interface Collection
- Specified by:
contains
in interface Set
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface Set
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface Set
toArray
public Object[] toArray(Object[] arr)
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface Set
add
public boolean add(Object obj)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface Set
remove
public boolean remove(Object obj)
- Specified by:
remove
in interface Collection
- Specified by:
remove
in interface Set
containsAll
public boolean containsAll(Collection coll)
- Specified by:
containsAll
in interface Collection
- Specified by:
containsAll
in interface Set
addAll
public boolean addAll(Collection coll)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface Set
retainAll
public boolean retainAll(Collection coll)
- Specified by:
retainAll
in interface Collection
- Specified by:
retainAll
in interface Set
removeAll
public boolean removeAll(Collection coll)
- Specified by:
removeAll
in interface Collection
- Specified by:
removeAll
in interface Set
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface Set
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
- Specified by:
hashCode
in interface Set
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Collection
- Specified by:
equals
in interface Set
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2002-2007 The Spring Framework Project.