パッケージ com.kazurayam.ant.util

クラス VectorSet<E>

  • すべての実装されたインタフェース:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess

    public final class VectorSet<E>
    extends java.util.Vector<E>
    Subclass of Vector that won't store duplicate entries and shows HashSet's constant time performance characteristics for the contains method.

    This is not a general purpose class but has been written because the protected members of DirectoryScanner prohibited later revisions from using a more efficient collection.

    Methods are synchronized to keep Vector's contract.

    導入されたバージョン:
    Ant 1.8.0
    関連項目:
    直列化された形式
    • フィールドの概要

      • クラスから継承されたフィールド java.util.Vector

        capacityIncrement, elementCount, elementData
      • クラスから継承されたフィールド java.util.AbstractList

        modCount
    • コンストラクタの概要

      コンストラクタ 
      コンストラクタ 説明
      VectorSet()  
      VectorSet​(int initialCapacity)  
      VectorSet​(int initialCapacity, int capacityIncrement)  
      VectorSet​(java.util.Collection<? extends E> c)  
    • メソッドの概要

      すべてのメソッド インスタンス・メソッド concreteメソッド 
      修飾子とタイプ メソッド 説明
      void add​(int index, E o)
      This implementation may not add the element at the given index if it is already contained in the collection.
      boolean add​(E o)  
      boolean addAll​(int index, java.util.Collection<? extends E> c)
      This implementation may not add all elements at the given index if any of them are already contained in the collection.
      boolean addAll​(java.util.Collection<? extends E> c)  
      void addElement​(E o)  
      void clear()  
      java.lang.Object clone()  
      boolean contains​(java.lang.Object o)  
      boolean containsAll​(java.util.Collection<?> c)  
      void insertElementAt​(E o, int index)  
      E remove​(int index)  
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> c)  
      void removeAllElements()  
      boolean removeElement​(java.lang.Object o)  
      void removeElementAt​(int index)  
      void removeRange​(int fromIndex, int toIndex)  
      boolean retainAll​(java.util.Collection<?> c)  
      E set​(int index, E o)  
      void setElementAt​(E o, int index)  
      • クラスから継承されたメソッド java.util.Vector

        capacity, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
      • クラスから継承されたメソッド java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • インタフェースから継承されたメソッド java.util.Collection

        parallelStream, stream, toArray
    • コンストラクタの詳細

      • VectorSet

        public VectorSet()
      • VectorSet

        public VectorSet​(int initialCapacity)
      • VectorSet

        public VectorSet​(int initialCapacity,
                         int capacityIncrement)
      • VectorSet

        public VectorSet​(java.util.Collection<? extends E> c)
    • メソッドの詳細

      • add

        public boolean add​(E o)
        定義:
        add インタフェース内 java.util.Collection<E>
        定義:
        add インタフェース内 java.util.List<E>
        オーバーライド:
        add クラス内 java.util.Vector<E>
      • add

        public void add​(int index,
                        E o)
        This implementation may not add the element at the given index if it is already contained in the collection.
        定義:
        add インタフェース内 java.util.List<E>
        オーバーライド:
        add クラス内 java.util.Vector<E>
      • addElement

        public void addElement​(E o)
        オーバーライド:
        addElement クラス内 java.util.Vector<E>
      • addAll

        public boolean addAll​(java.util.Collection<? extends E> c)
        定義:
        addAll インタフェース内 java.util.Collection<E>
        定義:
        addAll インタフェース内 java.util.List<E>
        オーバーライド:
        addAll クラス内 java.util.Vector<E>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends E> c)
        This implementation may not add all elements at the given index if any of them are already contained in the collection.
        定義:
        addAll インタフェース内 java.util.List<E>
        オーバーライド:
        addAll クラス内 java.util.Vector<E>
      • clear

        public void clear()
        定義:
        clear インタフェース内 java.util.Collection<E>
        定義:
        clear インタフェース内 java.util.List<E>
        オーバーライド:
        clear クラス内 java.util.Vector<E>
      • clone

        public java.lang.Object clone()
        オーバーライド:
        clone クラス内 java.util.Vector<E>
      • contains

        public boolean contains​(java.lang.Object o)
        定義:
        contains インタフェース内 java.util.Collection<E>
        定義:
        contains インタフェース内 java.util.List<E>
        オーバーライド:
        contains クラス内 java.util.Vector<E>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        定義:
        containsAll インタフェース内 java.util.Collection<E>
        定義:
        containsAll インタフェース内 java.util.List<E>
        オーバーライド:
        containsAll クラス内 java.util.Vector<E>
      • insertElementAt

        public void insertElementAt​(E o,
                                    int index)
        オーバーライド:
        insertElementAt クラス内 java.util.Vector<E>
      • remove

        public E remove​(int index)
        定義:
        remove インタフェース内 java.util.List<E>
        オーバーライド:
        remove クラス内 java.util.Vector<E>
      • remove

        public boolean remove​(java.lang.Object o)
        定義:
        remove インタフェース内 java.util.Collection<E>
        定義:
        remove インタフェース内 java.util.List<E>
        オーバーライド:
        remove クラス内 java.util.Vector<E>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        定義:
        removeAll インタフェース内 java.util.Collection<E>
        定義:
        removeAll インタフェース内 java.util.List<E>
        オーバーライド:
        removeAll クラス内 java.util.Vector<E>
      • removeAllElements

        public void removeAllElements()
        オーバーライド:
        removeAllElements クラス内 java.util.Vector<E>
      • removeElement

        public boolean removeElement​(java.lang.Object o)
        オーバーライド:
        removeElement クラス内 java.util.Vector<E>
      • removeElementAt

        public void removeElementAt​(int index)
        オーバーライド:
        removeElementAt クラス内 java.util.Vector<E>
      • removeRange

        public void removeRange​(int fromIndex,
                                int toIndex)
        オーバーライド:
        removeRange クラス内 java.util.Vector<E>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        定義:
        retainAll インタフェース内 java.util.Collection<E>
        定義:
        retainAll インタフェース内 java.util.List<E>
        オーバーライド:
        retainAll クラス内 java.util.Vector<E>
      • set

        public E set​(int index,
                     E o)
        定義:
        set インタフェース内 java.util.List<E>
        オーバーライド:
        set クラス内 java.util.Vector<E>
      • setElementAt

        public void setElementAt​(E o,
                                 int index)
        オーバーライド:
        setElementAt クラス内 java.util.Vector<E>