Package oracle.pgx.api
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:
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 Summary
Constructors Constructor Description PgxVect(E[] vector)
Construct a new vector.PgxVect(E[] vector, PropertyType type)
Construct a new vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PgxVect<E> other)
boolean
equals(java.lang.Object obj)
E
get(int index)
int
getDimension()
PropertyType
getType()
int
hashCode()
void
set(int index, E value)
E[]
toArray()
java.lang.String
toString()
-
-
-
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 interfaceoracle.pgx.common.util.vector.Vect<E>
-
toArray
public E[] toArray()
- Specified by:
toArray
in interfaceoracle.pgx.common.util.vector.Vect<E>
-
set
public void set(int index, E value)
- Specified by:
set
in interfaceoracle.pgx.common.util.vector.Vect<E>
-
compareTo
public int compareTo(PgxVect<E> other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<E>
-
getType
public PropertyType getType()
- Specified by:
getType
in interfaceoracle.pgx.common.util.vector.Vect<E>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-