public class Ref


Summary

Public methods

static void

Add references in a String representation to a Ref ArrayList Used to add the Ref(s) property in the Config to references

String

Get the Id of the reference

float

Get the postMargin of the reference

float

Get the preMargin of the reference

float

Get the weight of the reference

static float

Try to parse an object into a float number

static Ref
void

Set the Id of the reference

void
setPostMargin(float postMargin)

Set the postMargin of the reference

void
setPreMargin(float preMargin)

Set the preMargin of the reference

void
setWeight(float weight)

Set the weight of the reference

String

Public methods

addStringToReferences

Added in 1.1.0
public static void addStringToReferences(String str, ArrayList<Ref> refs)

Add references in a String representation to a Ref ArrayList Used to add the Ref(s) property in the Config to references

Parameters
String str

references in a String representation

ArrayList<Ref> refs

a Ref ArrayList

getId

Added in 1.1.0
public String getId()

Get the Id of the reference

Returns
String

the Id of the reference

getPostMargin

Added in 1.1.0
public float getPostMargin()

Get the postMargin of the reference

Returns
float

the preMargin of the reference

getPreMargin

Added in 1.1.0
public float getPreMargin()

Get the preMargin of the reference

Returns
float

the preMargin of the reference

getWeight

Added in 1.1.0
public float getWeight()

Get the weight of the reference

Returns
float

the weight of the reference

parseFloat

Added in 1.1.0
public static float parseFloat(Object obj)

Try to parse an object into a float number

Parameters
Object obj

object to be parsed

Returns
float

a number

parseStringToRef

Added in 1.1.0
public static Ref parseStringToRef(String str)

setId

Added in 1.1.0
public void setId(String id)

Set the Id of the reference

Parameters
String id

setPostMargin

Added in 1.1.0
public void setPostMargin(float postMargin)

Set the postMargin of the reference

Parameters
float postMargin

setPreMargin

Added in 1.1.0
public void setPreMargin(float preMargin)

Set the preMargin of the reference

Parameters
float preMargin

setWeight

Added in 1.1.0
public void setWeight(float weight)

Set the weight of the reference

Parameters
float weight

toString

public String toString()