woolpack.utils
クラス DelegationCollection<E>

java.lang.Object
  上位を拡張 woolpack.utils.DelegationCollection<E>
型パラメータ:
E -
すべての実装されたインタフェース:
Iterable<E>, Collection<E>
直系の既知のサブクラス:
DelegationSet

public class DelegationCollection<E>
extends Object
implements Collection<E>

委譲先に委譲するCollectionです。
適用しているデザインパターン:Delegation。


コンストラクタの概要
DelegationCollection(Collection<E> collection)
           
 
メソッドの概要
 boolean add(E o)
           
 boolean addAll(Collection<? extends E> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object o)
           
 Collection<E> getCollection()
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 void setCollection(Collection<E> collection)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

DelegationCollection

public DelegationCollection(Collection<E> collection)
メソッドの詳細

iterator

public Iterator<E> iterator()
定義:
インタフェース Iterable<E> 内の iterator
定義:
インタフェース Collection<E> 内の iterator

toArray

public Object[] toArray()
定義:
インタフェース Collection<E> 内の toArray

toArray

public <T> T[] toArray(T[] a)
定義:
インタフェース Collection<E> 内の toArray

remove

public boolean remove(Object o)
定義:
インタフェース Collection<E> 内の remove

addAll

public boolean addAll(Collection<? extends E> c)
定義:
インタフェース Collection<E> 内の addAll

removeAll

public boolean removeAll(Collection<?> c)
定義:
インタフェース Collection<E> 内の removeAll

retainAll

public boolean retainAll(Collection<?> c)
定義:
インタフェース Collection<E> 内の retainAll

add

public boolean add(E o)
定義:
インタフェース Collection<E> 内の add

containsAll

public boolean containsAll(Collection<?> c)
定義:
インタフェース Collection<E> 内の containsAll

contains

public boolean contains(Object o)
定義:
インタフェース Collection<E> 内の contains

clear

public void clear()
定義:
インタフェース Collection<E> 内の clear

isEmpty

public boolean isEmpty()
定義:
インタフェース Collection<E> 内の isEmpty

size

public int size()
定義:
インタフェース Collection<E> 内の size

equals

public boolean equals(Object o)
定義:
インタフェース Collection<E> 内の equals
オーバーライド:
クラス Object 内の equals

hashCode

public int hashCode()
定義:
インタフェース Collection<E> 内の hashCode
オーバーライド:
クラス Object 内の hashCode

toString

public String toString()
オーバーライド:
クラス Object 内の toString

getCollection

public Collection<E> getCollection()

setCollection

public void setCollection(Collection<E> collection)


Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.