Class PgxVect<E>

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

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

    • 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 Details

    • 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 Comparable<E>
    • getType

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object