public class DefaultCodeDelegate
extends org.praxislive.code.CodeDelegate
Constructor and Description |
---|
DefaultCodeDelegate() |
Modifier and Type | Method and Description |
---|---|
double |
abs(double n)
Calculate the absolute value of the given value.
|
double |
acos(double value)
Returns the arc cosine of a value.
|
byte[] |
append(byte[] array,
byte value)
Deprecated.
|
char[] |
append(char[] array,
char value)
Deprecated.
|
double[] |
append(double[] array,
double value)
Deprecated.
|
float[] |
append(float[] array,
float value)
Deprecated.
|
int[] |
append(int[] array,
int value)
Deprecated.
|
Object |
append(Object array,
Object value)
Deprecated.
|
org.praxislive.core.types.PArray |
append(org.praxislive.core.types.PArray array,
double value)
Deprecated.
|
org.praxislive.core.types.PArray |
append(org.praxislive.core.types.PArray array,
String value)
Deprecated.
|
org.praxislive.core.types.PArray |
append(org.praxislive.core.types.PArray array,
org.praxislive.core.Value value)
Deprecated.
|
String[] |
append(String[] array,
String value)
Deprecated.
|
org.praxislive.core.types.PArray |
array(Property p)
Attempt to extract a
PArray from the given Property. |
org.praxislive.core.types.PArray |
array(String s)
Parse the given String into a
PArray . |
org.praxislive.core.types.PArray |
array(org.praxislive.core.Value v)
Convert the given Value into a
PArray . |
void |
arrayCopy(Object src,
int srcPosition,
Object dst,
int dstPosition,
int length)
Deprecated.
|
void |
arrayCopy(Object src,
Object dst)
Deprecated.
|
void |
arrayCopy(Object src,
Object dst,
int length)
Deprecated.
|
double |
asin(double value)
Returns the arc sine of a value.
|
double |
atan(double value)
Returns the arc tangent of a value.
|
double |
atan2(double y,
double x)
Returns the angle theta from the conversion of rectangular coordinates
(x, y) to polar coordinates (r, theta).
|
boolean |
b(Property p)
Extract the Property's current value as a boolean.
|
boolean |
b(String s)
Parse the given String into a boolean according to the parsing rules of
PBoolean . |
boolean |
b(org.praxislive.core.Value v)
Convert the provided Value into a boolean according to the parsing rules of
PBoolean . |
String |
binary(byte value)
Deprecated.
|
String |
binary(char value)
Deprecated.
|
String |
binary(int value)
Deprecated.
|
String |
binary(int value,
int digits)
Deprecated.
|
boolean[] |
concat(boolean[] a,
boolean[] b)
Deprecated.
|
byte[] |
concat(byte[] a,
byte[] b)
Deprecated.
|
char[] |
concat(char[] a,
char[] b)
Deprecated.
|
double[] |
concat(double[] a,
double[] b)
Deprecated.
|
float[] |
concat(float[] a,
float[] b)
Deprecated.
|
int[] |
concat(int[] a,
int[] b)
Deprecated.
|
Object |
concat(Object a,
Object b)
Deprecated.
|
org.praxislive.core.types.PArray |
concat(org.praxislive.core.types.PArray a,
org.praxislive.core.types.PArray b)
Deprecated.
|
String[] |
concat(String[] a,
String[] b)
Deprecated.
|
double |
constrain(double amt,
double low,
double high)
Constrain a value between the range of the given low and high values.
|
int |
constrain(int amt,
int low,
int high)
Constrain a value between the range of the given low and high values.
|
double |
cos(double angle)
Returns the trigonometric cosine of an angle.
|
double |
d(Property p)
Extract a double from the Property's current Value, or zero if the value
cannot be coerced.
|
double |
d(String s)
Parse the provided String into a double, or zero if invalid.
|
double |
d(org.praxislive.core.Value v)
Convert the provided Value into a double, or zero if the Value cannot be
coerced.
|
int |
day()
Deprecated.
|
double |
degrees(double radians)
Converts an angle in radians to an angle in degrees.
|
double |
dist(double x1,
double y1,
double x2,
double y2)
Calculates the distance between two points.
|
double |
dist(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
Calculates the distance between two points.
|
double |
exp(double a)
Calculate Euler's number raised to the power of the given value.
|
boolean[] |
expand(boolean[] list)
Deprecated.
|
boolean[] |
expand(boolean[] list,
int newSize)
Deprecated.
|
byte[] |
expand(byte[] list)
Deprecated.
|
byte[] |
expand(byte[] list,
int newSize)
Deprecated.
|
char[] |
expand(char[] list)
Deprecated.
|
char[] |
expand(char[] list,
int newSize)
Deprecated.
|
double[] |
expand(double[] list)
Deprecated.
|
double[] |
expand(double[] list,
int newSize)
Deprecated.
|
float[] |
expand(float[] list)
Deprecated.
|
float[] |
expand(float[] list,
int newSize)
Deprecated.
|
int[] |
expand(int[] list)
Deprecated.
|
int[] |
expand(int[] list,
int newSize)
Deprecated.
|
long[] |
expand(long[] list)
Deprecated.
|
long[] |
expand(long[] list,
int newSize)
Deprecated.
|
Object |
expand(Object array)
Deprecated.
|
Object |
expand(Object list,
int newSize)
Deprecated.
|
String[] |
expand(String[] list)
Deprecated.
|
String[] |
expand(String[] list,
int newSize)
Deprecated.
|
float |
f(Property p)
Deprecated.
|
<T> Optional<T> |
find(Class<T> type)
Search for an instance of the given type.
|
org.praxislive.core.Lookup |
getLookup()
Return a Lookup for finding instances of features.
|
String |
hex(byte value)
Deprecated.
|
String |
hex(char value)
Deprecated.
|
String |
hex(int value)
Deprecated.
|
String |
hex(int value,
int digits)
Deprecated.
|
int |
hour()
Deprecated.
|
int |
i(Property p)
Extract an int from the Property's current Value, or zero if the value
cannot be coerced.
|
int |
i(String s)
Parse the provided String into an int, or zero if invalid.
|
int |
i(org.praxislive.core.Value v)
Convert the provided Value into an int, or zero if the Value cannot be
coerced.
|
boolean |
isLoggable(org.praxislive.logging.LogLevel level)
Check whether the messages at the given log level are being sent.
|
String |
join(String[] list,
char separator)
Deprecated.
|
String |
join(String[] list,
String separator)
Deprecated.
|
double |
lerp(double start,
double stop,
double amt)
Calculates a number between two numbers at a specific increment.
|
double |
log(double a)
Calculate the natural logarithm if the given value.
|
void |
log(org.praxislive.logging.LogLevel level,
Class<? extends Exception> type,
String msg)
Send a log message with associated Exception type.
|
void |
log(org.praxislive.logging.LogLevel level,
Exception ex)
Send a log message with associated Exception type.
|
void |
log(org.praxislive.logging.LogLevel level,
Exception ex,
String msg)
Send a log message with associated Exception.
|
void |
log(org.praxislive.logging.LogLevel level,
String msg)
Send a log message.
|
double |
map(double value,
double start1,
double stop1,
double start2,
double stop2)
Re-map (scale) an input value from one range to another.
|
String[] |
match(String str,
String regexp)
Deprecated.
|
String[][] |
matchAll(String str,
String regexp)
Deprecated.
|
double |
max(double... values)
Calculate the maximum value in the provided array.
|
double |
max(double a,
double b)
Calculate the maximum of two values.
|
double |
max(double a,
double b,
double c)
Calculate the maximum of three values.
|
int |
max(int... values)
Calculate the maximum value in the provided array.
|
int |
max(int a,
int b)
Calculate the maximum of two values.
|
int |
max(int a,
int b,
int c)
Calculate the maximum of three values.
|
long |
millis()
The current time in milliseconds since the root was started.
|
double |
min(double... values)
Calculate the minimum value in the provided array.
|
double |
min(double a,
double b)
Calculate the minimum of two values.
|
double |
min(double a,
double b,
double c)
Calculate the minimum of three values.
|
int |
min(int... values)
Calculate the minimum value in the provided array.
|
int |
min(int a,
int b)
Calculate the minimum of two values.
|
int |
min(int a,
int b,
int c)
Calculate the minimum of three values.
|
int |
minute()
Deprecated.
|
int |
month()
Deprecated.
|
double |
noise(double x)
Computes the Perlin noise function value at point x.
|
double |
noise(double x,
double y)
Computes the Perlin noise function value at the point x, y.
|
double |
noise(double x,
double y,
double z)
Computes the Perlin noise function value at x, y, z.
|
void |
noiseDetail(int lod) |
void |
noiseDetail(int lod,
double falloff) |
void |
noiseSeed(long what) |
double |
norm(double value,
double start,
double stop)
Normalizes a number from another range into a value between 0 and 1.
|
Property |
p(String id)
Deprecated.
|
double |
pow(double a,
double b)
Calculate the value of the first argument raised to the power of the
second argument.
|
double |
radians(double degrees)
Converts an angle in degrees to an angle in radians.
|
double |
random(double max)
Return a random number between zero and max (exclusive)
|
double |
random(double min,
double max)
Return a random number between min (inclusive) and max (exclusive)
|
double |
randomOf(double... values)
Return a random element from an array of values.
|
int |
randomOf(int... values)
Return a random element from an array of values.
|
String |
randomOf(String... values)
Return a random element from an array of values.
|
boolean[] |
reverse(boolean[] list)
Deprecated.
|
byte[] |
reverse(byte[] list)
Deprecated.
|
char[] |
reverse(char[] list)
Deprecated.
|
double[] |
reverse(double[] list)
Deprecated.
|
float[] |
reverse(float[] list)
Deprecated.
|
int[] |
reverse(int[] list)
Deprecated.
|
Object |
reverse(Object list)
Deprecated.
|
String[] |
reverse(String[] list)
Deprecated.
|
int |
round(double amt)
Round a value to the nearest integer.
|
String |
s(Property p)
Extract the Property's current value into a String representation.
|
String |
s(org.praxislive.core.Value v)
Convert the provided Value into a String representation.
|
org.praxislive.core.ComponentAddress |
self()
Get this component's address.
|
org.praxislive.core.ControlAddress |
self(String control)
Get the address of a control on this component.
|
boolean[] |
shorten(boolean[] list)
Deprecated.
|
byte[] |
shorten(byte[] list)
Deprecated.
|
char[] |
shorten(char[] list)
Deprecated.
|
double[] |
shorten(double[] list)
Deprecated.
|
float[] |
shorten(float[] list)
Deprecated.
|
int[] |
shorten(int[] list)
Deprecated.
|
Object |
shorten(Object list)
Deprecated.
|
String[] |
shorten(String[] list)
Deprecated.
|
double |
sin(double angle)
Returns the trigonometric sine of an angle
|
byte[] |
sort(byte[] list)
Deprecated.
|
byte[] |
sort(byte[] list,
int count)
Deprecated.
|
char[] |
sort(char[] list)
Deprecated.
|
char[] |
sort(char[] list,
int count)
Deprecated.
|
double[] |
sort(double[] list)
Deprecated.
|
double[] |
sort(double[] list,
int count)
Deprecated.
|
float[] |
sort(float[] list)
Deprecated.
|
float[] |
sort(float[] list,
int count)
Deprecated.
|
int[] |
sort(int[] list)
Deprecated.
|
int[] |
sort(int[] list,
int count)
Deprecated.
|
String[] |
sort(String[] list)
Deprecated.
|
String[] |
sort(String[] list,
int count)
Deprecated.
|
boolean[] |
splice(boolean[] list,
boolean[] value,
int index)
Deprecated.
|
boolean[] |
splice(boolean[] list,
boolean value,
int index)
Deprecated.
|
byte[] |
splice(byte[] list,
byte[] value,
int index)
Deprecated.
|
byte[] |
splice(byte[] list,
byte value,
int index)
Deprecated.
|
char[] |
splice(char[] list,
char[] value,
int index)
Deprecated.
|
char[] |
splice(char[] list,
char value,
int index)
Deprecated.
|
double[] |
splice(double[] list,
double[] value,
int index)
Deprecated.
|
double[] |
splice(double[] list,
double value,
int index)
Deprecated.
|
float[] |
splice(float[] list,
float[] value,
int index)
Deprecated.
|
float[] |
splice(float[] list,
float value,
int index)
Deprecated.
|
int[] |
splice(int[] list,
int[] value,
int index)
Deprecated.
|
int[] |
splice(int[] list,
int value,
int index)
Deprecated.
|
Object |
splice(Object list,
Object value,
int index)
Deprecated.
|
org.praxislive.core.types.PArray |
splice(org.praxislive.core.types.PArray array,
double value,
int index)
Deprecated.
|
org.praxislive.core.types.PArray |
splice(org.praxislive.core.types.PArray array,
String value,
int index)
Deprecated.
|
org.praxislive.core.types.PArray |
splice(org.praxislive.core.types.PArray array,
org.praxislive.core.Value value,
int index)
Deprecated.
|
String[] |
splice(String[] list,
String[] value,
int index)
Deprecated.
|
String[] |
splice(String[] list,
String value,
int index)
Deprecated.
|
String[] |
split(String value,
char delim)
Deprecated.
|
String[] |
split(String value,
String delim)
Deprecated.
|
String[] |
splitTokens(String value)
Deprecated.
|
String[] |
splitTokens(String value,
String delim)
Deprecated.
|
double |
sq(double a)
Calculate the square of the given value.
|
double |
sqrt(double a)
Calculate the square root of the given value.
|
boolean[] |
subset(boolean[] list,
int start)
Deprecated.
|
boolean[] |
subset(boolean[] list,
int start,
int count)
Deprecated.
|
byte[] |
subset(byte[] list,
int start)
Deprecated.
|
byte[] |
subset(byte[] list,
int start,
int count)
Deprecated.
|
char[] |
subset(char[] list,
int start)
Deprecated.
|
char[] |
subset(char[] list,
int start,
int count)
Deprecated.
|
double[] |
subset(double[] list,
int start)
Deprecated.
|
double[] |
subset(double[] list,
int start,
int count)
Deprecated.
|
float[] |
subset(float[] list,
int start)
Deprecated.
|
float[] |
subset(float[] list,
int start,
int count)
Deprecated.
|
int[] |
subset(int[] list,
int start)
Deprecated.
|
int[] |
subset(int[] list,
int start,
int count)
Deprecated.
|
Object |
subset(Object list,
int start)
Deprecated.
|
Object |
subset(Object list,
int start,
int count)
Deprecated.
|
org.praxislive.core.types.PArray |
subset(org.praxislive.core.types.PArray array,
int start)
Deprecated.
|
org.praxislive.core.types.PArray |
subset(org.praxislive.core.types.PArray array,
int start,
int count)
Deprecated.
|
String[] |
subset(String[] list,
int start)
Deprecated.
|
String[] |
subset(String[] list,
int start,
int count)
Deprecated.
|
double |
tan(double angle)
Returns the trigonometric tangent of an angle.
|
void |
tell(org.praxislive.core.ControlAddress destination,
double value)
Send a message to a Control.
|
void |
tell(org.praxislive.core.ControlAddress destination,
String value)
Send a message to a Control.
|
void |
tell(org.praxislive.core.ControlAddress destination,
org.praxislive.core.Value value)
Send a message to a Control.
|
void |
tellIn(double seconds,
org.praxislive.core.ControlAddress destination,
double value)
Send a message to a Control in the given number of seconds or fractions
of second from now.
|
void |
tellIn(double seconds,
org.praxislive.core.ControlAddress destination,
String value)
Send a message to a Control in the given number of seconds or fractions
of second from now.
|
void |
tellIn(double seconds,
org.praxislive.core.ControlAddress destination,
org.praxislive.core.Value value)
Send a message to a Control in the given number of seconds or fractions
of second from now.
|
long |
time()
The current clocktime in nanoseconds.
|
void |
transmit(String componentID,
String portID,
double value)
Send a value to a port on another component.
|
void |
transmit(String componentID,
String portID,
String value)
Send a value to a port on another component.
|
void |
transmit(String componentID,
String portID,
org.praxislive.core.Value value)
Send a value to a port on another component.
|
String |
trim(String str)
Deprecated.
|
String[] |
trim(String[] array)
Deprecated.
|
int |
unbinary(String value)
Deprecated.
|
int |
unhex(String value)
Deprecated.
|
int |
year()
Deprecated.
|
public final void log(org.praxislive.logging.LogLevel level, String msg)
level
- msg
- public final void log(org.praxislive.logging.LogLevel level, Exception ex)
level
- ex
- public final void log(org.praxislive.logging.LogLevel level, Exception ex, String msg)
level
- ex
- msg
- public final void log(org.praxislive.logging.LogLevel level, Class<? extends Exception> type, String msg)
level
- type
- msg
- public final boolean isLoggable(org.praxislive.logging.LogLevel level)
level
- public final void transmit(String componentID, String portID, String value)
componentID
- ID of the other componentportID
- ID of the port on the other componentvalue
- public final void transmit(String componentID, String portID, org.praxislive.core.Value value)
componentID
- ID of the other componentportID
- ID of the port on the other componentvalue
- public final void transmit(String componentID, String portID, double value)
componentID
- ID of the other componentportID
- ID of the port on the other componentvalue
- public final void tell(org.praxislive.core.ControlAddress destination, String value)
destination
- address of controlvalue
- message valuepublic final void tell(org.praxislive.core.ControlAddress destination, double value)
destination
- address of controlvalue
- message valuepublic final void tell(org.praxislive.core.ControlAddress destination, org.praxislive.core.Value value)
destination
- address of controlvalue
- message valuepublic final void tellIn(double seconds, org.praxislive.core.ControlAddress destination, String value)
seconds
- from nowdestination
- address of controlvalue
- message valuepublic final void tellIn(double seconds, org.praxislive.core.ControlAddress destination, double value)
seconds
- from nowdestination
- address of controlvalue
- message valuepublic final void tellIn(double seconds, org.praxislive.core.ControlAddress destination, org.praxislive.core.Value value)
seconds
- from nowdestination
- address of controlvalue
- message valuepublic final org.praxislive.core.ComponentAddress self()
public final org.praxislive.core.ControlAddress self(String control)
control
- id of controlpublic org.praxislive.core.Lookup getLookup()
public <T> Optional<T> find(Class<T> type)
T
- type
- class to search forpublic final long time()
public final long millis()
public final double d(Property p)
p
- public final double d(org.praxislive.core.Value v)
v
- public final double d(String s)
s
- @Deprecated public final float f(Property p)
p
- public final int i(Property p)
p
- public final int i(org.praxislive.core.Value v)
v
- public final int i(String s)
s
- public final boolean b(Property p)
p
- public final boolean b(org.praxislive.core.Value v)
PBoolean
. If the Value cannot be coerced, returns false.v
- public final boolean b(String s)
PBoolean
. If the String is invalid, returns false.s
- public final String s(Property p)
p
- public final String s(org.praxislive.core.Value v)
v
- public final org.praxislive.core.types.PArray array(Property p)
PArray
from the given Property. An empty PArray
will be returned if the property's value is not a PArray and cannot be coerced.p
- #array(org.praxislive.core.types.Value)
public final org.praxislive.core.types.PArray array(org.praxislive.core.Value v)
PArray
. If the Value is already a
PArray it will be returned, otherwise an attempt will be made to coerce it.
If the Value cannot be converted, an empty PArray will be returned.s
- public final org.praxislive.core.types.PArray array(String s)
PArray
. If the String is not a valid
representation of an array, returns an empty PArray.s
- @Deprecated public final Property p(String id)
id
- public final double random(double max)
max
- the upper bound of the rangepublic final double random(double min, double max)
min
- the lower bound of the rangemax
- the upper bound of the rangepublic final double randomOf(double... values)
values
- list of values, may not be emptypublic final int randomOf(int... values)
values
- list of values, may not be emptypublic final String randomOf(String... values)
values
- list of values, may not be emptypublic final double abs(double n)
n
- public final double sq(double a)
a
- public final double sqrt(double a)
a
- Math.sqrt(double)
public final double log(double a)
a
- Math.log(double)
public final double exp(double a)
a
- Math.exp(double)
public final double pow(double a, double b)
a
- the baseb
- the exponentMath.pow(double, double)
public final int max(int a, int b)
a
- b
- public final int max(int a, int b, int c)
a
- b
- c
- public final int max(int... values)
values
- value list - must not be emptypublic final double max(double a, double b)
a
- b
- public final double max(double a, double b, double c)
a
- b
- c
- public final double max(double... values)
values
- value list - must not be emptypublic final int min(int a, int b)
a
- b
- public final int min(int a, int b, int c)
a
- b
- c
- public final int min(int... values)
values
- value list - must not be emptypublic final double min(double a, double b)
a
- b
- public final double min(double a, double b, double c)
a
- b
- c
- public final double min(double... values)
values
- value list - must not be emptypublic final int constrain(int amt, int low, int high)
amt
- input valuelow
- lowest allowed valuehigh
- highest allowed valuepublic final double constrain(double amt, double low, double high)
amt
- input valuelow
- lowest allowed valuehigh
- highest allowed valuepublic final int round(double amt)
amt
- input valuepublic final double degrees(double radians)
radians
- Math.toDegrees(double)
public final double radians(double degrees)
degrees
- Math.toRadians(double)
public final double sin(double angle)
angle
- Math.sin(double)
public final double cos(double angle)
angle
- Math.cos(double)
public final double tan(double angle)
angle
- Math.tan(double)
public final double asin(double value)
value
- Math.asin(double)
public final double acos(double value)
value
- Math.acos(double)
public final double atan(double value)
value
- Math.atan(double)
public final double atan2(double y, double x)
y
- x
- Math.atan2(double, double)
public final double map(double value, double start1, double stop1, double start2, double stop2)
value
- the value to be convertedstart1
- lower bound of the value's current rangestop1
- upper bound of the value's current rangestart2
- lower bound of the value's target rangestop2
- upper bound of the value's target rangepublic final double dist(double x1, double y1, double x2, double y2)
x1
- x-coordinate of the first pointy1
- y-coordinate of the first pointx2
- x-coordinate of the second pointy2
- y-coordinate of the second pointpublic final double dist(double x1, double y1, double z1, double x2, double y2, double z2)
x1
- x-coordinate of the first pointy1
- y-coordinate of the first pointz1
- z-coordinate of the first pointx2
- x-coordinate of the second pointy2
- y-coordinate of the second pointz2
- z-coordinate of the second pointpublic final double lerp(double start, double stop, double amt)
start
- first valuestop
- second valueamt
- between 0.0 and 1.0public final double norm(double value, double start, double stop)
Identical to map(value, low, high, 0, 1);
Numbers outside the range are not clamped to 0 and 1, because out-of-range values are often intentional and useful.
value
- the incoming value to be convertedstart
- lower bound of the value's current rangestop
- upper bound of the value's current rangepublic final double noise(double x)
x
- public final double noise(double x, double y)
x
- y
- public final double noise(double x, double y, double z)
x
- z
- y
- public final void noiseDetail(int lod)
lod
- public final void noiseDetail(int lod, double falloff)
lod
- falloff
- public final void noiseSeed(long what)
what
- @Deprecated public final int minute()
@Deprecated public final int hour()
@Deprecated public final int day()
@Deprecated public final int month()
@Deprecated public final int year()
@Deprecated public final byte[] sort(byte[] list)
list
- @Deprecated public final byte[] sort(byte[] list, int count)
list
- count
- @Deprecated public final char[] sort(char[] list)
list
- @Deprecated public final char[] sort(char[] list, int count)
list
- count
- @Deprecated public final int[] sort(int[] list)
list
- @Deprecated public final int[] sort(int[] list, int count)
list
- count
- @Deprecated public final float[] sort(float[] list)
list
- @Deprecated public final float[] sort(float[] list, int count)
list
- count
- @Deprecated public final double[] sort(double[] list)
list
- @Deprecated public final double[] sort(double[] list, int count)
list
- count
- @Deprecated public final String[] sort(String[] list)
list
- @Deprecated public final String[] sort(String[] list, int count)
list
- count
- @Deprecated public final void arrayCopy(Object src, int srcPosition, Object dst, int dstPosition, int length)
src
- srcPosition
- dst
- dstPosition
- length
- @Deprecated public final void arrayCopy(Object src, Object dst, int length)
src
- dst
- length
- @Deprecated public final void arrayCopy(Object src, Object dst)
src
- dst
- @Deprecated public final boolean[] expand(boolean[] list)
list
- @Deprecated public final boolean[] expand(boolean[] list, int newSize)
list
- newSize
- @Deprecated public final byte[] expand(byte[] list)
list
- @Deprecated public final byte[] expand(byte[] list, int newSize)
list
- newSize
- @Deprecated public final char[] expand(char[] list)
list
- @Deprecated public final char[] expand(char[] list, int newSize)
list
- newSize
- @Deprecated public final int[] expand(int[] list)
list
- @Deprecated public final int[] expand(int[] list, int newSize)
list
- newSize
- @Deprecated public final long[] expand(long[] list)
list
- @Deprecated public final long[] expand(long[] list, int newSize)
list
- newSize
- @Deprecated public final float[] expand(float[] list)
list
- @Deprecated public final float[] expand(float[] list, int newSize)
list
- newSize
- @Deprecated public final double[] expand(double[] list)
list
- @Deprecated public final double[] expand(double[] list, int newSize)
list
- newSize
- @Deprecated public final String[] expand(String[] list)
list
- @Deprecated public final String[] expand(String[] list, int newSize)
list
- newSize
- @Deprecated public final Object expand(Object array)
array
- @Deprecated public final Object expand(Object list, int newSize)
list
- newSize
- @Deprecated public final byte[] append(byte[] array, byte value)
array
- value
- @Deprecated public final char[] append(char[] array, char value)
array
- value
- @Deprecated public final int[] append(int[] array, int value)
array
- value
- @Deprecated public final float[] append(float[] array, float value)
array
- value
- @Deprecated public final double[] append(double[] array, double value)
array
- value
- @Deprecated public final String[] append(String[] array, String value)
array
- value
- @Deprecated public final org.praxislive.core.types.PArray append(org.praxislive.core.types.PArray array, org.praxislive.core.Value value)
array
- value
- @Deprecated public final org.praxislive.core.types.PArray append(org.praxislive.core.types.PArray array, String value)
array
- value
- @Deprecated public final org.praxislive.core.types.PArray append(org.praxislive.core.types.PArray array, double value)
array
- value
- @Deprecated public final Object append(Object array, Object value)
array
- value
- @Deprecated public final boolean[] shorten(boolean[] list)
list
- @Deprecated public final byte[] shorten(byte[] list)
list
- @Deprecated public final char[] shorten(char[] list)
list
- @Deprecated public final int[] shorten(int[] list)
list
- @Deprecated public final float[] shorten(float[] list)
list
- @Deprecated public final double[] shorten(double[] list)
list
- @Deprecated public final String[] shorten(String[] list)
list
- @Deprecated public final Object shorten(Object list)
list
- @Deprecated public final boolean[] splice(boolean[] list, boolean value, int index)
list
- value
- index
- @Deprecated public final boolean[] splice(boolean[] list, boolean[] value, int index)
list
- value
- index
- @Deprecated public final byte[] splice(byte[] list, byte value, int index)
list
- value
- index
- @Deprecated public final byte[] splice(byte[] list, byte[] value, int index)
list
- value
- index
- @Deprecated public final char[] splice(char[] list, char value, int index)
list
- value
- index
- @Deprecated public final char[] splice(char[] list, char[] value, int index)
list
- value
- index
- @Deprecated public final int[] splice(int[] list, int value, int index)
list
- value
- index
- @Deprecated public final int[] splice(int[] list, int[] value, int index)
list
- value
- index
- @Deprecated public final float[] splice(float[] list, float value, int index)
list
- value
- index
- @Deprecated public final float[] splice(float[] list, float[] value, int index)
list
- value
- index
- @Deprecated public final double[] splice(double[] list, double value, int index)
list
- value
- index
- @Deprecated public final double[] splice(double[] list, double[] value, int index)
list
- value
- index
- @Deprecated public final String[] splice(String[] list, String value, int index)
list
- value
- index
- @Deprecated public final String[] splice(String[] list, String[] value, int index)
list
- value
- index
- @Deprecated public final org.praxislive.core.types.PArray splice(org.praxislive.core.types.PArray array, org.praxislive.core.Value value, int index)
array
- value
- index
- @Deprecated public final org.praxislive.core.types.PArray splice(org.praxislive.core.types.PArray array, String value, int index)
array
- value
- index
- @Deprecated public final org.praxislive.core.types.PArray splice(org.praxislive.core.types.PArray array, double value, int index)
array
- value
- index
- @Deprecated public final Object splice(Object list, Object value, int index)
list
- value
- index
- @Deprecated public final boolean[] subset(boolean[] list, int start)
list
- start
- @Deprecated public final boolean[] subset(boolean[] list, int start, int count)
list
- start
- count
- @Deprecated public final byte[] subset(byte[] list, int start)
list
- start
- @Deprecated public final byte[] subset(byte[] list, int start, int count)
list
- start
- count
- @Deprecated public final char[] subset(char[] list, int start)
list
- start
- @Deprecated public final char[] subset(char[] list, int start, int count)
list
- start
- count
- @Deprecated public final int[] subset(int[] list, int start)
list
- start
- @Deprecated public final int[] subset(int[] list, int start, int count)
list
- start
- count
- @Deprecated public final float[] subset(float[] list, int start)
list
- start
- @Deprecated public final float[] subset(float[] list, int start, int count)
list
- start
- count
- @Deprecated public final double[] subset(double[] list, int start)
list
- start
- @Deprecated public final double[] subset(double[] list, int start, int count)
list
- start
- count
- @Deprecated public final String[] subset(String[] list, int start)
list
- start
- @Deprecated public final String[] subset(String[] list, int start, int count)
list
- start
- count
- @Deprecated public final org.praxislive.core.types.PArray subset(org.praxislive.core.types.PArray array, int start)
list
- start
- @Deprecated public final org.praxislive.core.types.PArray subset(org.praxislive.core.types.PArray array, int start, int count)
list
- start
- count
- @Deprecated public final Object subset(Object list, int start)
list
- start
- @Deprecated public final Object subset(Object list, int start, int count)
list
- start
- count
- @Deprecated public final boolean[] concat(boolean[] a, boolean[] b)
a
- b
- @Deprecated public final byte[] concat(byte[] a, byte[] b)
a
- b
- @Deprecated public final char[] concat(char[] a, char[] b)
a
- b
- @Deprecated public final int[] concat(int[] a, int[] b)
a
- b
- @Deprecated public final float[] concat(float[] a, float[] b)
a
- b
- @Deprecated public final double[] concat(double[] a, double[] b)
a
- b
- @Deprecated public final String[] concat(String[] a, String[] b)
a
- b
- @Deprecated public final org.praxislive.core.types.PArray concat(org.praxislive.core.types.PArray a, org.praxislive.core.types.PArray b)
a
- b
- @Deprecated public final Object concat(Object a, Object b)
a
- b
- @Deprecated public final boolean[] reverse(boolean[] list)
list
- @Deprecated public final byte[] reverse(byte[] list)
list
- @Deprecated public final char[] reverse(char[] list)
list
- @Deprecated public final int[] reverse(int[] list)
list
- @Deprecated public final float[] reverse(float[] list)
list
- @Deprecated public final double[] reverse(double[] list)
list
- @Deprecated public final String[] reverse(String[] list)
list
- @Deprecated public final Object reverse(Object list)
list
- @Deprecated public final String trim(String str)
str
- @Deprecated public final String[] trim(String[] array)
array
- @Deprecated public final String join(String[] list, char separator)
list
- separator
- @Deprecated public final String join(String[] list, String separator)
list
- separator
- @Deprecated public final String[] splitTokens(String value)
value
- @Deprecated public final String[] splitTokens(String value, String delim)
value
- delim
- @Deprecated public final String[] split(String value, char delim)
value
- delim
- @Deprecated public final String[] split(String value, String delim)
value
- delim
- @Deprecated public final String[] match(String str, String regexp)
To use the function, first check to see if the result is null. If the result is null, then the sequence did not match. If the sequence did match, an array is returned. If there are groups (specified by sets of parentheses) in the regexp, then the contents of each will be returned in the array. Element [0] of a regexp match returns the entire matching string, and the match groups start at element [1] (the first group is [1], the second [2], and so on).
str
- regexp
- @Deprecated public final String[][] matchAll(String str, String regexp)
str
- regexp
- @Deprecated public final String hex(byte value)
value
- @Deprecated public final String hex(char value)
value
- @Deprecated public final String hex(int value)
value
- @Deprecated public final String hex(int value, int digits)
value
- digits
- @Deprecated public final int unhex(String value)
value
- @Deprecated public final String binary(byte value)
value
- @Deprecated public final String binary(char value)
value
- @Deprecated public final String binary(int value)
value
- @Deprecated public final String binary(int value, int digits)
value
- digits
- @Deprecated public final int unbinary(String value)
value
-