E - the element type of this vector.public final class PgxVect<E> extends oracle.pgx.api.internal.ApiObject implements java.lang.Comparable<PgxVect<E>>, oracle.pgx.common.util.vector.Vect<E>
| Constructor and Description |
|---|
PgxVect(E[] vector)
Construct a new vector.
|
PgxVect(E[] vector, PropertyType type)
Construct a new vector.
|
| Modifier and Type | Method and 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() |
public PgxVect(E[] vector)
vector - the array of elements this vector should contain.public PgxVect(E[] vector, PropertyType type)
vector - the array of elements this vector should contain.type - the element type of this vector. Must match the given array.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getDimension()
getDimension in interface oracle.pgx.common.util.vector.Vect<E>public PropertyType getType()
getType in interface oracle.pgx.common.util.vector.Vect<E>public int hashCode()
hashCode in class java.lang.Object
public void set(int index,
E value)
set in interface oracle.pgx.common.util.vector.Vect<E>public E[] toArray()
toArray in interface oracle.pgx.common.util.vector.Vect<E>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.