Class PgxVect<E>

  • Type Parameters:
    E - the element type of this vector.
    All Implemented Interfaces:
    java.lang.Comparable<PgxVect<E>>, oracle.pgx.common.util.vector.Vect<E>

    public final class PgxVect<E>
    extends oracle.pgx.api.internal.ApiObject
    implements java.lang.Comparable<PgxVect<E>>, oracle.pgx.common.util.vector.Vect<E>
    A vector.
    • Constructor Detail

      • PgxVect

        public PgxVect​(E[] vector)
        Construct a new vector.
        Parameters:
        vector - the array of elements this vector should contain.
      • PgxVect

        public PgxVect​(E[] vector,
                       PropertyType type)
        Construct a new vector.
        Parameters:
        vector - the array of elements this vector should contain.
        type - the element type of this vector. Must match the given array.
    • Method Detail

      • getDimension

        public int getDimension()
        Specified by:
        getDimension in interface oracle.pgx.common.util.vector.Vect<E>
      • toArray

        public E[] toArray()
        Specified by:
        toArray in interface oracle.pgx.common.util.vector.Vect<E>
      • get

        public E get​(int index)
        Specified by:
        get in interface oracle.pgx.common.util.vector.Vect<E>
      • set

        public void set​(int index,
                        E value)
        Specified by:
        set in interface oracle.pgx.common.util.vector.Vect<E>
      • compareTo

        public int compareTo​(PgxVect<E> other)
        Specified by:
        compareTo in interface java.lang.Comparable<E>
      • getType

        public PropertyType getType()
        Specified by:
        getType in interface oracle.pgx.common.util.vector.Vect<E>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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