org.seasar.util.collection
クラス CollectionsUtil

java.lang.Object
  上位を拡張 org.seasar.util.collection.CollectionsUtil

public abstract class CollectionsUtil
extends Object

コレクションのためのユーティリティです。

作成者:
koichik

コンストラクタの概要
CollectionsUtil()
           
 
メソッドの概要
static boolean isEmpty(Collection<?> collection)
          Collectionがnullまたは要素が無い場合はtrueを返します。
static boolean isEmpty(Map<?,?> map)
          Mapがnullまたは要素が無い場合はtrueを返します。
static boolean isNotEmpty(Collection<?> collection)
          Collectionがnullでも要素が無いわけでもない場合はtrueを返します。
static boolean isNotEmpty(Map<?,?> map)
          Mapがnullでも要素が無いわけでもない場合はtrueを返します。
static
<E> ArrayBlockingQueue<E>
newArrayBlockingQueue(int capacity)
          ArrayBlockingQueueの新しいインスタンスを作成して返します。
static
<E> ArrayBlockingQueue<E>
newArrayBlockingQueue(int capacity, boolean fair)
          ArrayBlockingQueueの新しいインスタンスを作成して返します。
static
<E> ArrayBlockingQueue<E>
newArrayBlockingQueue(int capacity, boolean fair, Collection<? extends E> c)
          ArrayBlockingQueueの新しいインスタンスを作成して返します。
static
<E> ArrayDeque<E>
newArrayDeque()
          ArrayDequeの新しいインスタンスを作成して返します。
static
<E> ArrayDeque<E>
newArrayDeque(Collection<? extends E> c)
          ArrayDequeの新しいインスタンスを作成して返します。
static
<E> ArrayDeque<E>
newArrayDeque(int numElements)
          ArrayDequeの新しいインスタンスを作成して返します。
static
<E> ArrayList<E>
newArrayList()
          ArrayListの新しいインスタンスを作成して返します。
static
<E> ArrayList<E>
newArrayList(Collection<? extends E> c)
          ArrayListの新しいインスタンスを作成して返します。
static
<E> ArrayList<E>
newArrayList(int initialCapacity)
          ArrayListの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentHashMap<K,V>
newConcurrentHashMap()
          ConcurrentHashMapの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentHashMap<K,V>
newConcurrentHashMap(int initialCapacity)
          ConcurrentHashMapの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentHashMap<K,V>
newConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)
          ConcurrentHashMapの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentHashMap<K,V>
newConcurrentHashMap(Map<? extends K,? extends V> m)
          ConcurrentHashMapの新しいインスタンスを作成して返します。
static
<E> ConcurrentLinkedQueue<E>
newConcurrentLinkedQueue()
          ConcurrentLinkedQueueの新しいインスタンスを作成して返します。
static
<E> ConcurrentLinkedQueue<E>
newConcurrentLinkedQueue(Collection<? extends E> c)
          ConcurrentLinkedQueueの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentSkipListMap<K,V>
newConcurrentSkipListMap()
          ConcurrentSkipListMapの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentSkipListMap<K,V>
newConcurrentSkipListMap(Comparator<? super K> c)
          ConcurrentSkipListMapの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentSkipListMap<K,V>
newConcurrentSkipListMap(Map<? extends K,? extends V> m)
          ConcurrentSkipListMapの新しいインスタンスを作成して返します。
static
<K,V> ConcurrentSkipListMap<K,V>
newConcurrentSkipListMap(SortedMap<K,? extends V> m)
          ConcurrentSkipListMapの新しいインスタンスを作成して返します。
static
<E> ConcurrentSkipListSet<E>
newConcurrentSkipListSet()
          ConcurrentSkipListSetの新しいインスタンスを作成して返します。
static
<E> ConcurrentSkipListSet<E>
newConcurrentSkipListSet(Collection<? extends E> c)
          ConcurrentSkipListSetの新しいインスタンスを作成して返します。
static
<E> ConcurrentSkipListSet<E>
newConcurrentSkipListSet(Comparator<? super E> c)
          ConcurrentSkipListSetの新しいインスタンスを作成して返します。
static
<E> ConcurrentSkipListSet<E>
newConcurrentSkipListSet(SortedSet<? extends E> s)
          ConcurrentSkipListSetの新しいインスタンスを作成して返します。
static
<E> CopyOnWriteArrayList<E>
newCopyOnWriteArrayList()
          CopyOnWriteArrayListの新しいインスタンスを作成して返します。
static
<E> CopyOnWriteArrayList<E>
newCopyOnWriteArrayList(Collection<? extends E> c)
          CopyOnWriteArrayListの新しいインスタンスを作成して返します。
static
<E> CopyOnWriteArrayList<E>
newCopyOnWriteArrayList(E[] toCopyIn)
          CopyOnWriteArrayListの新しいインスタンスを作成して返します。
static
<E> CopyOnWriteArraySet<E>
newCopyOnWriteArraySet()
          CopyOnWriteArraySetの新しいインスタンスを作成して返します。
static
<E> CopyOnWriteArraySet<E>
newCopyOnWriteArraySet(Collection<? extends E> c)
          CopyOnWriteArraySetの新しいインスタンスを作成して返します。
static
<E extends Delayed>
DelayQueue<E>
newDelayQueue()
          DelayQueueの新しいインスタンスを作成して返します。
static
<E extends Delayed>
DelayQueue<E>
newDelayQueue(Collection<? extends E> c)
          DelayQueueの新しいインスタンスを作成して返します。
static
<K extends Enum<K>,V>
EnumMap<K,V>
newEnumMap(Class<K> keyType)
          EnumMapの新しいインスタンスを作成して返します。
static
<K extends Enum<K>,V>
EnumMap<K,V>
newEnumMap(EnumMap<K,? extends V> m)
          EnumMapの新しいインスタンスを作成して返します。
static
<K extends Enum<K>,V>
EnumMap<K,V>
newEnumMap(Map<K,? extends V> m)
          EnumMapの新しいインスタンスを作成して返します。
static
<K,V> HashMap<K,V>
newHashMap()
          HashMapの新しいインスタンスを作成して返します。
static
<K,V> HashMap<K,V>
newHashMap(int initialCapacity)
          HashMapの新しいインスタンスを作成して返します。
static
<K,V> HashMap<K,V>
newHashMap(int initialCapacity, float loadFactor)
          HashMapの新しいインスタンスを作成して返します。
static
<K,V> HashMap<K,V>
newHashMap(Map<? extends K,? extends V> m)
          HashMapの新しいインスタンスを作成して返します。
static
<E> HashSet<E>
newHashSet()
          HashSetの新しいインスタンスを作成して返します。
static
<E> HashSet<E>
newHashSet(Collection<? extends E> c)
          HashSetの新しいインスタンスを作成して返します。
static
<E> HashSet<E>
newHashSet(int initialCapacity)
          HashSetの新しいインスタンスを作成して返します。
static
<E> HashSet<E>
newHashSet(int initialCapacity, float loadFactor)
          HashSetの新しいインスタンスを作成して返します。
static
<K,V> Hashtable<K,V>
newHashtable()
          Hashtableの新しいインスタンスを作成して返します。
static
<K,V> Hashtable<K,V>
newHashtable(int initialCapacity)
          Hashtableの新しいインスタンスを作成して返します。
static
<K,V> Hashtable<K,V>
newHashtable(int initialCapacity, float loadFactor)
          Hashtableの新しいインスタンスを作成して返します。
static
<K,V> Hashtable<K,V>
newHashtable(Map<? extends K,? extends V> m)
          Hashtableの新しいインスタンスを作成して返します。
static
<K,V> IdentityHashMap<K,V>
newIdentityHashMap()
          IdentityHashMapの新しいインスタンスを作成して返します。
static
<K,V> IdentityHashMap<K,V>
newIdentityHashMap(int expectedMaxSize)
          IdentityHashMapの新しいインスタンスを作成して返します。
static
<K,V> IdentityHashMap<K,V>
newIdentityHashMap(Map<? extends K,? extends V> m)
          IdentityHashMapの新しいインスタンスを作成して返します。
static
<E> LinkedBlockingDeque<E>
newLinkedBlockingDeque()
          LinkedBlockingDequeの新しいインスタンスを作成して返します。
static
<E> LinkedBlockingDeque<E>
newLinkedBlockingDeque(Collection<? extends E> c)
          LinkedBlockingDequeの新しいインスタンスを作成して返します。
static
<E> LinkedBlockingDeque<E>
newLinkedBlockingDeque(int initialCapacity)
          LinkedBlockingDequeの新しいインスタンスを作成して返します。
static
<E> LinkedBlockingQueue<E>
newLinkedBlockingQueue()
          LinkedBlockingQueueの新しいインスタンスを作成して返します。
static
<E> LinkedBlockingQueue<E>
newLinkedBlockingQueue(Collection<? extends E> c)
          LinkedBlockingQueueの新しいインスタンスを作成して返します。
static
<E> LinkedBlockingQueue<E>
newLinkedBlockingQueue(int initialCapacity)
          LinkedBlockingQueueの新しいインスタンスを作成して返します。
static
<K,V> LinkedHashMap<K,V>
newLinkedHashMap()
          LinkedHashMapの新しいインスタンスを作成して返します。
static
<K,V> LinkedHashMap<K,V>
newLinkedHashMap(int initialCapacity)
          LinkedHashMapの新しいインスタンスを作成して返します。
static
<K,V> LinkedHashMap<K,V>
newLinkedHashMap(int initialCapacity, float loadFactor)
          LinkedHashMapの新しいインスタンスを作成して返します。
static
<K,V> LinkedHashMap<K,V>
newLinkedHashMap(Map<? extends K,? extends V> m)
          LinkedHashMapの新しいインスタンスを作成して返します。
static
<E> LinkedHashSet<E>
newLinkedHashSet()
          LinkedHashSetの新しいインスタンスを作成して返します。
static
<E> LinkedHashSet<E>
newLinkedHashSet(Collection<? extends E> c)
          LinkedHashSetの新しいインスタンスを作成して返します。
static
<E> LinkedHashSet<E>
newLinkedHashSet(int initialCapacity)
          LinkedHashSetの新しいインスタンスを作成して返します。
static
<E> LinkedHashSet<E>
newLinkedHashSet(int initialCapacity, float loadFactor)
          LinkedHashSetの新しいインスタンスを作成して返します。
static
<E> LinkedList<E>
newLinkedList()
          LinkedListの新しいインスタンスを作成して返します。
static
<E> LinkedList<E>
newLinkedList(Collection<? extends E> c)
          LinkedListの新しいインスタンスを作成して返します。
static
<E> PriorityBlockingQueue<E>
newPriorityBlockingQueue()
          PriorityBlockingQueueの新しいインスタンスを作成して返します。
static
<E> PriorityBlockingQueue<E>
newPriorityBlockingQueue(Collection<? extends E> c)
          PriorityBlockingQueueの新しいインスタンスを作成して返します。
static
<E> PriorityBlockingQueue<E>
newPriorityBlockingQueue(int initialCapacity)
          PriorityBlockingQueueの新しいインスタンスを作成して返します。
static
<E> PriorityBlockingQueue<E>
newPriorityBlockingQueue(int initialCapacity, Comparator<? super E> comparator)
          PriorityBlockingQueueの新しいインスタンスを作成して返します。
static
<E> PriorityQueue<E>
newPriorityQueue()
          PriorityQueueの新しいインスタンスを作成して返します。
static
<E> PriorityQueue<E>
newPriorityQueue(Collection<? extends E> c)
          PriorityQueueの新しいインスタンスを作成して返します。
static
<E> PriorityQueue<E>
newPriorityQueue(int initialCapacity)
          PriorityQueueの新しいインスタンスを作成して返します。
static
<E> PriorityQueue<E>
newPriorityQueue(int initialCapacity, Comparator<? super E> comparator)
          PriorityQueueの新しいインスタンスを作成して返します。
static
<E> PriorityQueue<E>
newPriorityQueue(PriorityQueue<? extends E> c)
          PriorityQueueの新しいインスタンスを作成して返します。
static
<E> PriorityQueue<E>
newPriorityQueue(SortedSet<? extends E> c)
          PriorityQueueの新しいインスタンスを作成して返します。
static
<E> Stack<E>
newStack()
          Stackの新しいインスタンスを作成して返します。
static
<E> SynchronousQueue<E>
newSynchronousQueue()
          SynchronousQueueの新しいインスタンスを作成して返します。
static
<E> SynchronousQueue<E>
newSynchronousQueue(boolean fair)
          SynchronousQueueの新しいインスタンスを作成して返します。
static
<K,V> TreeMap<K,V>
newTreeMap()
          TreeMapの新しいインスタンスを作成して返します。
static
<K,V> TreeMap<K,V>
newTreeMap(Comparator<? super K> c)
          TreeMapの新しいインスタンスを作成して返します。
static
<K,V> TreeMap<K,V>
newTreeMap(Map<? extends K,? extends V> m)
          TreeMapの新しいインスタンスを作成して返します。
static
<K,V> TreeMap<K,V>
newTreeMap(SortedMap<K,? extends V> m)
          TreeMapの新しいインスタンスを作成して返します。
static
<E> TreeSet<E>
newTreeSet()
          TreeSetの新しいインスタンスを作成して返します。
static
<E> TreeSet<E>
newTreeSet(Collection<? extends E> c)
          TreeSetの新しいインスタンスを作成して返します。
static
<E> TreeSet<E>
newTreeSet(Comparator<? super E> c)
          TreeSetの新しいインスタンスを作成して返します。
static
<E> TreeSet<E>
newTreeSet(SortedSet<? extends E> s)
          TreeSetの新しいインスタンスを作成して返します。
static
<E> Vector<E>
newVector()
          Vectorの新しいインスタンスを作成して返します。
static
<E> Vector<E>
newVector(Collection<? extends E> c)
          Vectorの新しいインスタンスを作成して返します。
static
<E> Vector<E>
newVector(int initialCapacity)
          Vectorの新しいインスタンスを作成して返します。
static
<E> Vector<E>
newVector(int initialCapacity, int capacityIncrement)
          Vectorの新しいインスタンスを作成して返します。
static
<K,V> WeakHashMap<K,V>
newWeakHashMap()
          WeakHashMapの新しいインスタンスを作成して返します。
static
<K,V> WeakHashMap<K,V>
newWeakHashMap(int initialCapacity)
          WeakHashMapの新しいインスタンスを作成して返します。
static
<K,V> WeakHashMap<K,V>
newWeakHashMap(int initialCapacity, float loadFactor)
          WeakHashMapの新しいインスタンスを作成して返します。
static
<K,V> WeakHashMap<K,V>
newWeakHashMap(Map<? extends K,? extends V> m)
          WeakHashMapの新しいインスタンスを作成して返します。
static
<K,V> V
putIfAbsent(ConcurrentMap<K,V> map, K key, V value)
          マップが指定されたキーを含んでいない場合は、キーを指定された値に関連付けます。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CollectionsUtil

public CollectionsUtil()
メソッドの詳細

newArrayBlockingQueue

public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(int capacity)
ArrayBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayBlockingQueueの要素型
パラメータ:
capacity - キューの容量
戻り値:
ArrayBlockingQueueの新しいインスタンス
関連項目:
ArrayBlockingQueue.ArrayBlockingQueue(int)

newArrayBlockingQueue

public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(int capacity,
                                                              boolean fair)
ArrayBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayBlockingQueueの要素型
パラメータ:
capacity - キューの容量
fair - trueの場合、挿入または削除時にブロックされたスレッドに対するキューアクセス
戻り値:
ArrayBlockingQueueの新しいインスタンス
関連項目:
ArrayBlockingQueue.ArrayBlockingQueue(int, boolean)

newArrayBlockingQueue

public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(int capacity,
                                                              boolean fair,
                                                              Collection<? extends E> c)
ArrayBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayBlockingQueueの要素型
パラメータ:
capacity - キューの容量
fair - trueの場合、挿入または削除時にブロックされたスレッドに対するキューアクセス
c - 最初に含む要素のコレクション
戻り値:
ArrayBlockingQueueの新しいインスタンス
関連項目:
ArrayBlockingQueue.ArrayBlockingQueue(int, boolean, Collection)

newArrayDeque

public static <E> ArrayDeque<E> newArrayDeque()
ArrayDequeの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayDequeの要素型
戻り値:
ArrayDequeの新しいインスタンス
関連項目:
ArrayDeque.ArrayDeque()

newArrayDeque

public static <E> ArrayDeque<E> newArrayDeque(Collection<? extends E> c)
ArrayDequeの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayDequeの要素型
パラメータ:
c - 要素が両端キューに配置されるコレクション
戻り値:
ArrayDequeの新しいインスタンス
関連項目:
ArrayDeque.ArrayDeque(Collection)

newArrayDeque

public static <E> ArrayDeque<E> newArrayDeque(int numElements)
ArrayDequeの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayDequeの要素型
パラメータ:
numElements - 両端キューの初期容量の範囲の下限
戻り値:
ArrayDequeの新しいインスタンス
関連項目:
ArrayDeque.ArrayDeque(int)

newArrayList

public static <E> ArrayList<E> newArrayList()
ArrayListの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayListの要素型
戻り値:
ArrayListの新しいインスタンス
関連項目:
ArrayList.ArrayList()

newArrayList

public static <E> ArrayList<E> newArrayList(Collection<? extends E> c)
ArrayListの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayListの要素型
パラメータ:
c - 要素がリストに配置されるコレクション
戻り値:
ArrayListの新しいインスタンス
関連項目:
ArrayList.ArrayList(Collection)

newArrayList

public static <E> ArrayList<E> newArrayList(int initialCapacity)
ArrayListの新しいインスタンスを作成して返します。

型パラメータ:
E - ArrayListの要素型
パラメータ:
initialCapacity - リストの初期容量
戻り値:
ArrayListの新しいインスタンス
関連項目:
ArrayList.ArrayList(int)

newConcurrentHashMap

public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap()
ConcurrentHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentHashMapのキーの型
V - ConcurrentHashMapの値の型
戻り値:
ConcurrentHashMapの新しいインスタンス
関連項目:
ConcurrentHashMap.ConcurrentHashMap()

newConcurrentHashMap

public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap(int initialCapacity)
ConcurrentHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentHashMapのキーの型
V - ConcurrentHashMapの値の型
パラメータ:
initialCapacity - 初期容量
戻り値:
ConcurrentHashMapの新しいインスタンス
関連項目:
ConcurrentHashMap.ConcurrentHashMap(int)

newConcurrentHashMap

public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap(int initialCapacity,
                                                                float loadFactor,
                                                                int concurrencyLevel)
ConcurrentHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentHashMapのキーの型
V - ConcurrentHashMapの値の型
パラメータ:
initialCapacity - 初期容量
loadFactor - サイズ変更の制御に使用される負荷係数のしきい値
concurrencyLevel - 同時更新を行うスレッドの推定数
戻り値:
ConcurrentHashMapの新しいインスタンス
関連項目:
ConcurrentHashMap.ConcurrentHashMap(int, float, int)

newConcurrentHashMap

public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap(Map<? extends K,? extends V> m)
ConcurrentHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentHashMapのキーの型
V - ConcurrentHashMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
ConcurrentHashMapの新しいインスタンス
関連項目:
ConcurrentHashMap.ConcurrentHashMap(Map)

newConcurrentLinkedQueue

public static <E> ConcurrentLinkedQueue<E> newConcurrentLinkedQueue()
ConcurrentLinkedQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - ConcurrentLinkedQueueの要素型
戻り値:
ConcurrentLinkedQueueの新しいインスタンス
関連項目:
ConcurrentLinkedQueue.ConcurrentLinkedQueue()

newConcurrentLinkedQueue

public static <E> ConcurrentLinkedQueue<E> newConcurrentLinkedQueue(Collection<? extends E> c)
ConcurrentLinkedQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - ConcurrentLinkedQueueの要素型
パラメータ:
c - 最初に含む要素のコレクション
戻り値:
ConcurrentLinkedQueueの新しいインスタンス
関連項目:
ConcurrentLinkedQueue.ConcurrentLinkedQueue(Collection)

newConcurrentSkipListMap

public static <K,V> ConcurrentSkipListMap<K,V> newConcurrentSkipListMap()
ConcurrentSkipListMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentSkipListMapのキーの型
V - ConcurrentSkipListMapの値の型
戻り値:
ConcurrentSkipListMapの新しいインスタンス
関連項目:
ConcurrentSkipListMap.ConcurrentSkipListMap()

newConcurrentSkipListMap

public static <K,V> ConcurrentSkipListMap<K,V> newConcurrentSkipListMap(Comparator<? super K> c)
ConcurrentSkipListMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentSkipListMapのキーの型
V - ConcurrentSkipListMapの値の型
パラメータ:
c - Comparator
戻り値:
ConcurrentSkipListMapの新しいインスタンス
関連項目:
ConcurrentSkipListMap.ConcurrentSkipListMap(Comparator)

newConcurrentSkipListMap

public static <K,V> ConcurrentSkipListMap<K,V> newConcurrentSkipListMap(Map<? extends K,? extends V> m)
ConcurrentSkipListMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentSkipListMapのキーの型
V - ConcurrentSkipListMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
ConcurrentSkipListMapの新しいインスタンス
関連項目:
ConcurrentSkipListMap.ConcurrentSkipListMap(Map)

newConcurrentSkipListMap

public static <K,V> ConcurrentSkipListMap<K,V> newConcurrentSkipListMap(SortedMap<K,? extends V> m)
ConcurrentSkipListMapの新しいインスタンスを作成して返します。

型パラメータ:
K - ConcurrentSkipListMapのキーの型
V - ConcurrentSkipListMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
ConcurrentSkipListMapの新しいインスタンス
関連項目:
ConcurrentSkipListMap.ConcurrentSkipListMap(SortedMap)

newConcurrentSkipListSet

public static <E> ConcurrentSkipListSet<E> newConcurrentSkipListSet()
ConcurrentSkipListSetの新しいインスタンスを作成して返します。

型パラメータ:
E - ConcurrentSkipListSetの要素型
戻り値:
ConcurrentSkipListSetの新しいインスタンス
関連項目:
ConcurrentSkipListSet.ConcurrentSkipListSet()

newConcurrentSkipListSet

public static <E> ConcurrentSkipListSet<E> newConcurrentSkipListSet(Collection<? extends E> c)
ConcurrentSkipListSetの新しいインスタンスを作成して返します。

型パラメータ:
E - ConcurrentSkipListSetの要素型
パラメータ:
c - 要素がセットに配置されるコレクション
戻り値:
ConcurrentSkipListSetの新しいインスタンス
関連項目:
ConcurrentSkipListSet.ConcurrentSkipListSet(Collection)

newConcurrentSkipListSet

public static <E> ConcurrentSkipListSet<E> newConcurrentSkipListSet(Comparator<? super E> c)
ConcurrentSkipListSetの新しいインスタンスを作成して返します。

型パラメータ:
E - ConcurrentSkipListSetの要素型
パラメータ:
c - このセットをソートするために使用されるコンパレータ
戻り値:
ConcurrentSkipListSetの新しいインスタンス
関連項目:
ConcurrentSkipListSet.ConcurrentSkipListSet(Comparator)

newConcurrentSkipListSet

public static <E> ConcurrentSkipListSet<E> newConcurrentSkipListSet(SortedSet<? extends E> s)
ConcurrentSkipListSetの新しいインスタンスを作成して返します。

型パラメータ:
E - ConcurrentSkipListSetの要素型
パラメータ:
s - 要素がセットに配置されるコレクション
戻り値:
ConcurrentSkipListSetの新しいインスタンス
関連項目:
ConcurrentSkipListSet.ConcurrentSkipListSet(SortedSet)

newCopyOnWriteArrayList

public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList()
CopyOnWriteArrayListの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArrayListの要素型
戻り値:
CopyOnWriteArrayListの新しいインスタンス
関連項目:
CopyOnWriteArrayList.CopyOnWriteArrayList()

newCopyOnWriteArrayList

public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList(Collection<? extends E> c)
CopyOnWriteArrayListの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArrayListの要素型
パラメータ:
c - 最初に保持していた要素のコレクション
戻り値:
CopyOnWriteArrayListの新しいインスタンス
関連項目:
CopyOnWriteArrayList.CopyOnWriteArrayList(Collection)

newCopyOnWriteArrayList

public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList(E[] toCopyIn)
CopyOnWriteArrayListの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArrayListの要素型
パラメータ:
toCopyIn - 配列 (この配列のコピーは内部配列として使用される)
戻り値:
CopyOnWriteArrayListの新しいインスタンス
関連項目:
CopyOnWriteArrayList.CopyOnWriteArrayList(Object[])

newCopyOnWriteArraySet

public static <E> CopyOnWriteArraySet<E> newCopyOnWriteArraySet()
CopyOnWriteArraySetの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArraySetの要素型
戻り値:
CopyOnWriteArraySetの新しいインスタンス
関連項目:
CopyOnWriteArraySet.CopyOnWriteArraySet()

newCopyOnWriteArraySet

public static <E> CopyOnWriteArraySet<E> newCopyOnWriteArraySet(Collection<? extends E> c)
CopyOnWriteArraySetの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArraySetの要素型
パラメータ:
c - コレクション
戻り値:
CopyOnWriteArraySetの新しいインスタンス
関連項目:
CopyOnWriteArraySet.CopyOnWriteArraySet(Collection)

newDelayQueue

public static <E extends Delayed> DelayQueue<E> newDelayQueue()
DelayQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArraySetの要素型
戻り値:
DelayQueueの新しいインスタンス
関連項目:
DelayQueue.DelayQueue()

newDelayQueue

public static <E extends Delayed> DelayQueue<E> newDelayQueue(Collection<? extends E> c)
DelayQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - CopyOnWriteArraySetの要素型
パラメータ:
c - コレクション
戻り値:
DelayQueueの新しいインスタンス
関連項目:
DelayQueue.DelayQueue(Collection)

newEnumMap

public static <K extends Enum<K>,V> EnumMap<K,V> newEnumMap(Class<K> keyType)
EnumMapの新しいインスタンスを作成して返します。

型パラメータ:
K - EnumMapのキーの型
V - EnumMapの値の型
パラメータ:
keyType - この enum マップ用のキー型のクラスオブジェクト
戻り値:
EnumMapの新しいインスタンス
関連項目:
EnumMap.EnumMap(Class)

newEnumMap

public static <K extends Enum<K>,V> EnumMap<K,V> newEnumMap(EnumMap<K,? extends V> m)
EnumMapの新しいインスタンスを作成して返します。

型パラメータ:
K - EnumMapのキーの型
V - EnumMapの値の型
パラメータ:
m - この enum マップの初期化元の enum マップ
戻り値:
EnumMapの新しいインスタンス
関連項目:
EnumMap.EnumMap(EnumMap)

newEnumMap

public static <K extends Enum<K>,V> EnumMap<K,V> newEnumMap(Map<K,? extends V> m)
EnumMapの新しいインスタンスを作成して返します。

型パラメータ:
K - EnumMapのキーの型
V - EnumMapの値の型
パラメータ:
m - この enum マップの初期化元のマップ
戻り値:
EnumMapの新しいインスタンス
関連項目:
EnumMap.EnumMap(Map)

newHashMap

public static <K,V> HashMap<K,V> newHashMap()
HashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - HashMapのキーの型
V - HashMapの値の型
戻り値:
HashMapの新しいインスタンス
関連項目:
HashMap.HashMap()

newHashMap

public static <K,V> HashMap<K,V> newHashMap(int initialCapacity)
HashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - HashMapのキーの型
V - HashMapの値の型
パラメータ:
initialCapacity - 初期容量
戻り値:
HashMapの新しいインスタンス
関連項目:
HashMap.HashMap(int)

newHashMap

public static <K,V> HashMap<K,V> newHashMap(int initialCapacity,
                                            float loadFactor)
HashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - HashMapのキーの型
V - HashMapの値の型
パラメータ:
initialCapacity - 初期容量
loadFactor - サイズ変更の制御に使用される負荷係数のしきい値
戻り値:
HashMapの新しいインスタンス
関連項目:
HashMap.HashMap(int, float)

newHashMap

public static <K,V> HashMap<K,V> newHashMap(Map<? extends K,? extends V> m)
HashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - HashMapのキーの型
V - HashMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
HashMapの新しいインスタンス
関連項目:
HashMap.HashMap(int, float)

newHashSet

public static <E> HashSet<E> newHashSet()
HashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - HashSetの要素型
戻り値:
HashSetの新しいインスタンス
関連項目:
HashSet.HashSet()

newHashSet

public static <E> HashSet<E> newHashSet(Collection<? extends E> c)
HashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - HashSetの要素型
パラメータ:
c - 要素がセットに配置されるコレクション
戻り値:
HashSetの新しいインスタンス
関連項目:
HashSet.HashSet()

newHashSet

public static <E> HashSet<E> newHashSet(int initialCapacity)
HashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - HashSetの要素型
パラメータ:
initialCapacity - 初期容量
戻り値:
HashSetの新しいインスタンス
関連項目:
HashSet.HashSet()

newHashSet

public static <E> HashSet<E> newHashSet(int initialCapacity,
                                        float loadFactor)
HashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - HashSetの要素型
パラメータ:
initialCapacity - 初期容量
loadFactor - 負荷係数
戻り値:
HashSetの新しいインスタンス
関連項目:
HashSet.HashSet()

newHashtable

public static <K,V> Hashtable<K,V> newHashtable()
Hashtableの新しいインスタンスを作成して返します。

型パラメータ:
K - Hashtableのキーの型
V - Hashtableの値の型
戻り値:
Hashtableの新しいインスタンス
関連項目:
Hashtable.Hashtable()

newHashtable

public static <K,V> Hashtable<K,V> newHashtable(int initialCapacity)
Hashtableの新しいインスタンスを作成して返します。

型パラメータ:
K - Hashtableのキーの型
V - Hashtableの値の型
パラメータ:
initialCapacity - ハッシュテーブルの初期容量
戻り値:
Hashtableの新しいインスタンス
関連項目:
Hashtable.Hashtable(int)

newHashtable

public static <K,V> Hashtable<K,V> newHashtable(int initialCapacity,
                                                float loadFactor)
Hashtableの新しいインスタンスを作成して返します。

型パラメータ:
K - Hashtableのキーの型
V - Hashtableの値の型
パラメータ:
initialCapacity - ハッシュテーブルの初期容量
loadFactor - ハッシュテーブルの負荷係数
戻り値:
Hashtableの新しいインスタンス
関連項目:
Hashtable.Hashtable(int, float)

newHashtable

public static <K,V> Hashtable<K,V> newHashtable(Map<? extends K,? extends V> m)
Hashtableの新しいインスタンスを作成して返します。

型パラメータ:
K - Hashtableのキーの型
V - Hashtableの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
Hashtableの新しいインスタンス
関連項目:
Hashtable.Hashtable(Map)

newIdentityHashMap

public static <K,V> IdentityHashMap<K,V> newIdentityHashMap()
IdentityHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - IdentityHashMapのキーの型
V - IdentityHashMapの値の型
戻り値:
IdentityHashMapの新しいインスタンス
関連項目:
IdentityHashMap.IdentityHashMap()

newIdentityHashMap

public static <K,V> IdentityHashMap<K,V> newIdentityHashMap(int expectedMaxSize)
IdentityHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - IdentityHashMapのキーの型
V - IdentityHashMapの値の型
パラメータ:
expectedMaxSize - マップの予想最大サイズ
戻り値:
IdentityHashMapの新しいインスタンス
関連項目:
IdentityHashMap.IdentityHashMap(int)

newIdentityHashMap

public static <K,V> IdentityHashMap<K,V> newIdentityHashMap(Map<? extends K,? extends V> m)
IdentityHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - IdentityHashMapのキーの型
V - IdentityHashMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
IdentityHashMapの新しいインスタンス
関連項目:
IdentityHashMap.IdentityHashMap(Map)

newLinkedBlockingDeque

public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque()
LinkedBlockingDequeの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedBlockingDequeの要素型
戻り値:
LinkedBlockingDequeの新しいインスタンス
関連項目:
LinkedBlockingDeque.LinkedBlockingDeque()

newLinkedBlockingDeque

public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(Collection<? extends E> c)
LinkedBlockingDequeの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedBlockingDequeの要素型
パラメータ:
c - 要素がリストに配置されるコレクション
戻り値:
LinkedBlockingDequeの新しいインスタンス
関連項目:
LinkedBlockingDeque.LinkedBlockingDeque(Collection)

newLinkedBlockingDeque

public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int initialCapacity)
LinkedBlockingDequeの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedBlockingDequeの要素型
パラメータ:
initialCapacity - リストの初期容量
戻り値:
LinkedBlockingDequeの新しいインスタンス
関連項目:
LinkedBlockingDeque.LinkedBlockingDeque(int)

newLinkedBlockingQueue

public static <E> LinkedBlockingQueue<E> newLinkedBlockingQueue()
LinkedBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedBlockingQueueの要素型
戻り値:
LinkedBlockingQueueの新しいインスタンス
関連項目:
LinkedBlockingQueue.LinkedBlockingQueue()

newLinkedBlockingQueue

public static <E> LinkedBlockingQueue<E> newLinkedBlockingQueue(Collection<? extends E> c)
LinkedBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedBlockingQueueの要素型
パラメータ:
c - 最初に含む要素のコレクション
戻り値:
LinkedBlockingQueueの新しいインスタンス
関連項目:
LinkedBlockingQueue.LinkedBlockingQueue(Collection)

newLinkedBlockingQueue

public static <E> LinkedBlockingQueue<E> newLinkedBlockingQueue(int initialCapacity)
LinkedBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedBlockingQueueの要素型
パラメータ:
initialCapacity - このキューの容量
戻り値:
LinkedBlockingQueueの新しいインスタンス
関連項目:
LinkedBlockingQueue.LinkedBlockingQueue(int)

newLinkedHashMap

public static <K,V> LinkedHashMap<K,V> newLinkedHashMap()
LinkedHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - LinkedHashMapのキーの型
V - LinkedHashMapの値の型
戻り値:
LinkedHashMapの新しいインスタンス
関連項目:
LinkedHashMap.LinkedHashMap()

newLinkedHashMap

public static <K,V> LinkedHashMap<K,V> newLinkedHashMap(int initialCapacity)
LinkedHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - LinkedHashMapのキーの型
V - LinkedHashMapの値の型
パラメータ:
initialCapacity - 初期容量
戻り値:
LinkedHashMapの新しいインスタンス
関連項目:
LinkedHashMap.LinkedHashMap(int)

newLinkedHashMap

public static <K,V> LinkedHashMap<K,V> newLinkedHashMap(int initialCapacity,
                                                        float loadFactor)
LinkedHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - LinkedHashMapのキーの型
V - LinkedHashMapの値の型
パラメータ:
initialCapacity - 初期容量
loadFactor - 負荷係数
戻り値:
LinkedHashMapの新しいインスタンス
関連項目:
LinkedHashMap.LinkedHashMap(int, float)

newLinkedHashMap

public static <K,V> LinkedHashMap<K,V> newLinkedHashMap(Map<? extends K,? extends V> m)
LinkedHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - LinkedHashMapのキーの型
V - LinkedHashMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
LinkedHashMapの新しいインスタンス
関連項目:
LinkedHashMap.LinkedHashMap(Map)

newLinkedHashSet

public static <E> LinkedHashSet<E> newLinkedHashSet()
LinkedHashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedHashSetの要素型
戻り値:
LinkedHashSetの新しいインスタンス
関連項目:
LinkedHashSet.LinkedHashSet()

newLinkedHashSet

public static <E> LinkedHashSet<E> newLinkedHashSet(Collection<? extends E> c)
LinkedHashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedHashSetの要素型
パラメータ:
c - 要素がセットに配置されるコレクション
戻り値:
LinkedHashSetの新しいインスタンス
関連項目:
LinkedHashSet.LinkedHashSet(Collection)

newLinkedHashSet

public static <E> LinkedHashSet<E> newLinkedHashSet(int initialCapacity)
LinkedHashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedHashSetの要素型
パラメータ:
initialCapacity - 初期容量
戻り値:
LinkedHashSetの新しいインスタンス
関連項目:
LinkedHashSet.LinkedHashSet(int)

newLinkedHashSet

public static <E> LinkedHashSet<E> newLinkedHashSet(int initialCapacity,
                                                    float loadFactor)
LinkedHashSetの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedHashSetの要素型
パラメータ:
initialCapacity - 初期容量
loadFactor - 負荷係数
戻り値:
LinkedHashSetの新しいインスタンス
関連項目:
LinkedHashSet.LinkedHashSet(int, float)

newLinkedList

public static <E> LinkedList<E> newLinkedList()
LinkedListの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedListの要素型
戻り値:
LinkedListの新しいインスタンス
関連項目:
LinkedList.LinkedList()

newLinkedList

public static <E> LinkedList<E> newLinkedList(Collection<? extends E> c)
LinkedListの新しいインスタンスを作成して返します。

型パラメータ:
E - LinkedListの要素型
パラメータ:
c - 要素がリストに配置されるコレクション
戻り値:
LinkedListの新しいインスタンス
関連項目:
LinkedList.LinkedList(Collection)

newPriorityBlockingQueue

public static <E> PriorityBlockingQueue<E> newPriorityBlockingQueue()
PriorityBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityBlockingQueueの要素型
戻り値:
PriorityBlockingQueueの新しいインスタンス
関連項目:
PriorityBlockingQueue.PriorityBlockingQueue()

newPriorityBlockingQueue

public static <E> PriorityBlockingQueue<E> newPriorityBlockingQueue(Collection<? extends E> c)
PriorityBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityBlockingQueueの要素型
パラメータ:
c - 最初に含む要素のコレクション
戻り値:
PriorityBlockingQueueの新しいインスタンス
関連項目:
PriorityBlockingQueue.PriorityBlockingQueue(Collection)

newPriorityBlockingQueue

public static <E> PriorityBlockingQueue<E> newPriorityBlockingQueue(int initialCapacity)
PriorityBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityBlockingQueueの要素型
パラメータ:
initialCapacity - この優先度キューの初期容量
戻り値:
PriorityBlockingQueueの新しいインスタンス
関連項目:
PriorityBlockingQueue.PriorityBlockingQueue(int)

newPriorityBlockingQueue

public static <E> PriorityBlockingQueue<E> newPriorityBlockingQueue(int initialCapacity,
                                                                    Comparator<? super E> comparator)
PriorityBlockingQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityBlockingQueueの要素型
パラメータ:
initialCapacity - この優先度キューの初期容量
comparator - この優先度キューの順序付けに使用するコンパレータ
戻り値:
PriorityBlockingQueueの新しいインスタンス
関連項目:
PriorityBlockingQueue.PriorityBlockingQueue(int, Comparator)

newPriorityQueue

public static <E> PriorityQueue<E> newPriorityQueue()
PriorityQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityQueueの要素型
戻り値:
PriorityQueueの新しいインスタンス
関連項目:
PriorityQueue.PriorityQueue()

newPriorityQueue

public static <E> PriorityQueue<E> newPriorityQueue(Collection<? extends E> c)
PriorityQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityQueueの要素型
パラメータ:
c - 要素が優先度キューに配置されるコレクション
戻り値:
PriorityQueueの新しいインスタンス
関連項目:
PriorityQueue.PriorityQueue(Collection)

newPriorityQueue

public static <E> PriorityQueue<E> newPriorityQueue(int initialCapacity)
PriorityQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityQueueの要素型
パラメータ:
initialCapacity - この優先度キューの初期容量
戻り値:
PriorityQueueの新しいインスタンス
関連項目:
PriorityQueue.PriorityQueue(int)

newPriorityQueue

public static <E> PriorityQueue<E> newPriorityQueue(int initialCapacity,
                                                    Comparator<? super E> comparator)
PriorityQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityQueueの要素型
パラメータ:
initialCapacity - この優先度キューの初期容量
comparator - この優先度キューの順序付けに使用するコンパレータ
戻り値:
PriorityQueueの新しいインスタンス
関連項目:
PriorityQueue.PriorityQueue(int, Comparator)

newPriorityQueue

public static <E> PriorityQueue<E> newPriorityQueue(PriorityQueue<? extends E> c)
PriorityQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityQueueの要素型
パラメータ:
c - 要素が優先度キューに配置されるコレクション
戻り値:
PriorityQueueの新しいインスタンス
関連項目:
PriorityQueue.PriorityQueue(PriorityQueue)

newPriorityQueue

public static <E> PriorityQueue<E> newPriorityQueue(SortedSet<? extends E> c)
PriorityQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - PriorityQueueの要素型
パラメータ:
c - 要素が優先度キューに配置されるコレクション
戻り値:
PriorityQueueの新しいインスタンス
関連項目:
PriorityQueue.PriorityQueue(SortedSet)

newStack

public static <E> Stack<E> newStack()
Stackの新しいインスタンスを作成して返します。

型パラメータ:
E - Stackの要素型
戻り値:
Stackの新しいインスタンス
関連項目:
Stack.Stack()

newSynchronousQueue

public static <E> SynchronousQueue<E> newSynchronousQueue()
SynchronousQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - SynchronousQueueの要素型
戻り値:
SynchronousQueueの新しいインスタンス
関連項目:
SynchronousQueue.SynchronousQueue()

newSynchronousQueue

public static <E> SynchronousQueue<E> newSynchronousQueue(boolean fair)
SynchronousQueueの新しいインスタンスを作成して返します。

型パラメータ:
E - SynchronousQueueの要素型
パラメータ:
fair - true の場合、待機中のスレッドは FIFO の順序でアクセスが決定される。そうでない場合、順序は未指定
戻り値:
SynchronousQueueの新しいインスタンス
関連項目:
SynchronousQueue.SynchronousQueue()

newTreeMap

public static <K,V> TreeMap<K,V> newTreeMap()
TreeMapの新しいインスタンスを作成して返します。

型パラメータ:
K - TreeMapのキーの型
V - TreeMapの値の型
戻り値:
TreeMapの新しいインスタンス
関連項目:
TreeMap.TreeMap()

newTreeMap

public static <K,V> TreeMap<K,V> newTreeMap(Comparator<? super K> c)
TreeMapの新しいインスタンスを作成して返します。

型パラメータ:
K - TreeMapのキーの型
V - TreeMapの値の型
パラメータ:
c - Comparator
戻り値:
TreeMapの新しいインスタンス
関連項目:
TreeMap.TreeMap(Comparator)

newTreeMap

public static <K,V> TreeMap<K,V> newTreeMap(Map<? extends K,? extends V> m)
TreeMapの新しいインスタンスを作成して返します。

型パラメータ:
K - TreeMapのキーの型
V - TreeMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
TreeMapの新しいインスタンス
関連項目:
TreeMap.TreeMap(Map)

newTreeMap

public static <K,V> TreeMap<K,V> newTreeMap(SortedMap<K,? extends V> m)
TreeMapの新しいインスタンスを作成して返します。

型パラメータ:
K - TreeMapのキーの型
V - TreeMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
TreeMapの新しいインスタンス
関連項目:
TreeMap.TreeMap(SortedMap)

newTreeSet

public static <E> TreeSet<E> newTreeSet()
TreeSetの新しいインスタンスを作成して返します。

型パラメータ:
E - TreeSetの要素型
戻り値:
TreeSetの新しいインスタンス
関連項目:
TreeSet.TreeSet()

newTreeSet

public static <E> TreeSet<E> newTreeSet(Collection<? extends E> c)
TreeSetの新しいインスタンスを作成して返します。

型パラメータ:
E - TreeSetの要素型
パラメータ:
c - 要素がセットに配置されるコレクション
戻り値:
TreeSetの新しいインスタンス
関連項目:
TreeSet.TreeSet(Collection)

newTreeSet

public static <E> TreeSet<E> newTreeSet(Comparator<? super E> c)
TreeSetの新しいインスタンスを作成して返します。

型パラメータ:
E - TreeSetの要素型
パラメータ:
c - このセットをソートするために使用されるコンパレータ
戻り値:
TreeSetの新しいインスタンス
関連項目:
TreeSet.TreeSet(Comparator)

newTreeSet

public static <E> TreeSet<E> newTreeSet(SortedSet<? extends E> s)
TreeSetの新しいインスタンスを作成して返します。

型パラメータ:
E - TreeSetの要素型
パラメータ:
s - 要素がセットに配置されるコレクション
戻り値:
TreeSetの新しいインスタンス
関連項目:
TreeSet.TreeSet(SortedSet)

newVector

public static <E> Vector<E> newVector()
Vectorの新しいインスタンスを作成して返します。

型パラメータ:
E - Vectorの要素型
戻り値:
Vectorの新しいインスタンス
関連項目:
Vector.Vector()

newVector

public static <E> Vector<E> newVector(Collection<? extends E> c)
Vectorの新しいインスタンスを作成して返します。

型パラメータ:
E - Vectorの要素型
パラメータ:
c - 要素がセットに配置されるコレクション
戻り値:
Vectorの新しいインスタンス
関連項目:
Vector.Vector(Collection)

newVector

public static <E> Vector<E> newVector(int initialCapacity)
Vectorの新しいインスタンスを作成して返します。

型パラメータ:
E - Vectorの要素型
パラメータ:
initialCapacity - Vectorの初期容量
戻り値:
Vectorの新しいインスタンス
関連項目:
Vector.Vector(int)

newVector

public static <E> Vector<E> newVector(int initialCapacity,
                                      int capacityIncrement)
Vectorの新しいインスタンスを作成して返します。

型パラメータ:
E - Vectorの要素型
パラメータ:
initialCapacity - Vectorの初期容量
capacityIncrement - Vectorがあふれたときに増加される容量
戻り値:
Vectorの新しいインスタンス
関連項目:
Vector.Vector(int, int)

newWeakHashMap

public static <K,V> WeakHashMap<K,V> newWeakHashMap()
WeakHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - WeakHashMapのキーの型
V - WeakHashMapの値の型
戻り値:
WeakHashMapの新しいインスタンス
関連項目:
WeakHashMap.WeakHashMap()

newWeakHashMap

public static <K,V> WeakHashMap<K,V> newWeakHashMap(int initialCapacity)
WeakHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - WeakHashMapのキーの型
V - WeakHashMapの値の型
パラメータ:
initialCapacity - 初期容量
戻り値:
WeakHashMapの新しいインスタンス
関連項目:
WeakHashMap.WeakHashMap(int)

newWeakHashMap

public static <K,V> WeakHashMap<K,V> newWeakHashMap(int initialCapacity,
                                                    float loadFactor)
WeakHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - WeakHashMapのキーの型
V - WeakHashMapの値の型
パラメータ:
initialCapacity - 初期容量
loadFactor - サイズ変更の制御に使用される負荷係数のしきい値
戻り値:
WeakHashMapの新しいインスタンス
関連項目:
WeakHashMap.WeakHashMap(int, float)

newWeakHashMap

public static <K,V> WeakHashMap<K,V> newWeakHashMap(Map<? extends K,? extends V> m)
WeakHashMapの新しいインスタンスを作成して返します。

型パラメータ:
K - WeakHashMapのキーの型
V - WeakHashMapの値の型
パラメータ:
m - 作成されるマップに配置されるマップ
戻り値:
WeakHashMapの新しいインスタンス
関連項目:
WeakHashMap.WeakHashMap(Map)

putIfAbsent

public static <K,V> V putIfAbsent(ConcurrentMap<K,V> map,
                                  K key,
                                  V value)
マップが指定されたキーを含んでいない場合は、キーを指定された値に関連付けます。

マップがすでに指定されたキーを含んでいる場合は、 キーに関連づけられている値を返します。 マップは変更されず、 指定された値は使われません。 マップがまだ指定されたキーを含んでいない場合は、 指定された値を値を返します。 マップは変更され、指定されたキーと指定された値が関連づけられます。 いずれの場合も、返される値はマップがその時点でキーと関連づけている値です。

型パラメータ:
K - HashMapのキーの型
V - HashMapの値の型
パラメータ:
map - マップ
key - 指定される値が関連付けられるキー
value - 指定されるキーに関連付けられる値
戻り値:
指定されたキーと関連付けられていた以前の値または、キーに関連付けられる値
関連項目:
ConcurrentHashMap.putIfAbsent(Object, Object)

isEmpty

public static boolean isEmpty(Collection<?> collection)
Collectionがnullまたは要素が無い場合はtrueを返します。

パラメータ:
collection - コレクション
戻り値:
コレクションがnullまたは要素が無い場合はtrue

isNotEmpty

public static boolean isNotEmpty(Collection<?> collection)
Collectionがnullでも要素が無いわけでもない場合はtrueを返します。

パラメータ:
collection - コレクション
戻り値:
コレクションがnullでも要素が無いわけでもない場合はtrue

isEmpty

public static boolean isEmpty(Map<?,?> map)
Mapがnullまたは要素が無い場合はtrueを返します。

パラメータ:
map - マップ
戻り値:
マップがnullまたは要素が無い場合はtrue

isNotEmpty

public static boolean isNotEmpty(Map<?,?> map)
Mapがnullでも要素が無いわけでもない場合はtrueを返します。

パラメータ:
map - マップ
戻り値:
マップがnullでも要素が無いわけでもない場合はtrue


Copyright © 2010-2012 The Seasar Foundation. All Rights Reserved.