Class AnyVector

java.lang.Object
io.opentimeline.OTIOObject
io.opentimeline.opentimelineio.AnyVector
All Implemented Interfaces:
java.lang.AutoCloseable, java.lang.Iterable<Any>, java.util.Collection<Any>

public class AnyVector
extends OTIOObject
implements java.util.Collection<Any>
AnyVector has the same API as java.util.Collection. It is a Collection<Any>.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    class  AnyVector.Iterator  
  • Field Summary

    Fields inherited from class io.opentimeline.OTIOObject

    nativeManager
  • Constructor Summary

    Constructors 
    Constructor Description
    AnyVector()  
  • Method Summary

    Modifier and Type Method Description
    boolean add​(int index, Any any)  
    boolean add​(Any any)  
    boolean addAll​(java.util.Collection<? extends Any> collection)  
    void clear()  
    boolean contains​(java.lang.Object o)  
    boolean containsAll​(java.util.Collection<?> collection)  
    void ensureCapacity​(int minCapacity)  
    boolean equals​(AnyVector anyVector)  
    boolean equals​(java.lang.Object obj)  
    void forEach​(java.util.function.Consumer<? super Any> action)  
    Any get​(int index)  
    boolean isEmpty()  
    AnyVector.Iterator iterator()  
    void remove​(int index)  
    boolean remove​(java.lang.Object o)  
    boolean removeAll​(java.util.Collection<?> collection)  
    boolean retainAll​(java.util.Collection<?> collection)  
    int size()  
    java.lang.Object[] toArray()  
    <T> T[] toArray​(T[] ts)  
    java.lang.String toString()  
    void trimToSize()  

    Methods inherited from class io.opentimeline.OTIOObject

    close, getNativeManager, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    hashCode, parallelStream, removeIf, spliterator, stream, toArray
  • Constructor Details

  • Method Details

    • iterator

      public AnyVector.Iterator iterator()
      Specified by:
      iterator in interface java.util.Collection<Any>
      Specified by:
      iterator in interface java.lang.Iterable<Any>
    • toArray

      public java.lang.Object[] toArray()
      Specified by:
      toArray in interface java.util.Collection<Any>
    • toArray

      public <T> T[] toArray​(T[] ts)
      Specified by:
      toArray in interface java.util.Collection<Any>
    • get

      public Any get​(int index)
    • add

      public boolean add​(Any any)
      Specified by:
      add in interface java.util.Collection<Any>
    • remove

      public boolean remove​(java.lang.Object o)
      Specified by:
      remove in interface java.util.Collection<Any>
    • containsAll

      public boolean containsAll​(java.util.Collection<?> collection)
      Specified by:
      containsAll in interface java.util.Collection<Any>
    • addAll

      public boolean addAll​(java.util.Collection<? extends Any> collection)
      Specified by:
      addAll in interface java.util.Collection<Any>
    • removeAll

      public boolean removeAll​(java.util.Collection<?> collection)
      Specified by:
      removeAll in interface java.util.Collection<Any>
    • retainAll

      public boolean retainAll​(java.util.Collection<?> collection)
      Specified by:
      retainAll in interface java.util.Collection<Any>
    • forEach

      public void forEach​(java.util.function.Consumer<? super Any> action)
      Specified by:
      forEach in interface java.lang.Iterable<Any>
    • add

      public boolean add​(int index, Any any)
    • clear

      public void clear()
      Specified by:
      clear in interface java.util.Collection<Any>
    • ensureCapacity

      public void ensureCapacity​(int minCapacity)
    • size

      public int size()
      Specified by:
      size in interface java.util.Collection<Any>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface java.util.Collection<Any>
    • contains

      public boolean contains​(java.lang.Object o)
      Specified by:
      contains in interface java.util.Collection<Any>
    • remove

      public void remove​(int index)
    • trimToSize

      public void trimToSize()
    • equals

      public boolean equals​(AnyVector anyVector)
    • equals

      public boolean equals​(java.lang.Object obj)
      Specified by:
      equals in interface java.util.Collection<Any>
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object