public abstract class P_Vector
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
P_Vector() |
Modifier and Type | Method and Description |
---|---|
void |
clearTag(int aBit)
Clears a single bit.
|
static P_Vector[] |
clone(P_Vector[] src)
Duplicate array and all entries by recursively cloning all instance variables
except inspector panels and lists of registered listeners.
|
static P_Vector[][] |
clone(P_Vector[][] src)
Duplicate array and all entries by recursively cloning all instance variables
except inspector panels and lists of registered listeners.
|
void |
copy(P_Vector vec)
Copies the bitfield of another vector.
|
long |
getBits()
Get integer array with bits.
|
java.lang.String |
getDetail()
Get longer detail text of vector.
|
java.lang.String |
getName()
Get name of vector.
|
java.lang.String |
getURL()
Get URL of vector.
|
boolean |
hasTag(int aBit)
Gets the value of a single bit.
|
static void |
invert(java.lang.Object[] arr,
int usedSize)
Invert the order of the first 'usedSize' entries inside the arr,
i.e. the first entry becomes the 'usedSize-1' entry.
|
void |
setDetail(java.lang.String detail)
Set longer detail text of vector, e.g. to be shown as overlay text.
|
void |
setName(java.lang.String name)
Set name of vector, e.g. to be shown in display.
|
void |
setTag(int aBit)
Sets a single bit.
|
void |
setURL(java.lang.String url)
Set name of vector, e.g. to be shown in display.
|
java.lang.String |
toString()
Create a multi-line string representation
with detailed information about all instance variables.
|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDetail()
public void setDetail(java.lang.String detail)
detail
- New detail text of vectorpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- New name of vectorpublic java.lang.String getURL()
public void setURL(java.lang.String url)
url
- New URL of vectorpublic long getBits()
public void setTag(int aBit)
aBit
- the index of the bit to be setpublic void clearTag(int aBit)
aBit
- the index of the bit to be clearedpublic boolean hasTag(int aBit)
aBit
- the index of the bit to be gottenpublic static P_Vector[][] clone(P_Vector[][] src)
null
.copy(P_Vector)
public static P_Vector[] clone(P_Vector[] src)
null
.copy(P_Vector)
public void copy(P_Vector vec)
null
. The bit array of this is created or enlarged if necessary.vec
- the vector to be copiedpublic static void invert(java.lang.Object[] arr, int usedSize)
arr
- array of objects.usedSize
- number of used entries"