class Ref


Summary

Public functions

java-static Unit

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

java-static Float
parseFloat(obj: Any!)

Try to parse an object into a float number

java-static Ref!
Unit
setId(id: String!)

Set the Id of the reference

Unit
setPostMargin(postMargin: Float)

Set the postMargin of the reference

Unit
setPreMargin(preMargin: Float)

Set the preMargin of the reference

Unit
setWeight(weight: Float)

Set the weight of the reference

String!

Public functions

addStringToReferences

Added in 1.1.0
java-static fun addStringToReferences(str: String!, refs: ArrayList<Ref!>!): Unit

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

Parameters
str: String!

references in a String representation

refs: ArrayList<Ref!>!

a Ref ArrayList

getId

Added in 1.1.0
fun getId(): String!

Get the Id of the reference

Returns
String!

the Id of the reference

getPostMargin

Added in 1.1.0
fun getPostMargin(): Float

Get the postMargin of the reference

Returns
Float

the preMargin of the reference

getPreMargin

Added in 1.1.0
fun getPreMargin(): Float

Get the preMargin of the reference

Returns
Float

the preMargin of the reference

getWeight

Added in 1.1.0
fun getWeight(): Float

Get the weight of the reference

Returns
Float

the weight of the reference

parseFloat

Added in 1.1.0
java-static fun parseFloat(obj: Any!): Float

Try to parse an object into a float number

Parameters
obj: Any!

object to be parsed

Returns
Float

a number

parseStringToRef

Added in 1.1.0
java-static fun parseStringToRef(str: String!): Ref!

setId

Added in 1.1.0
fun setId(id: String!): Unit

Set the Id of the reference

Parameters
id: String!

setPostMargin

Added in 1.1.0
fun setPostMargin(postMargin: Float): Unit

Set the postMargin of the reference

Parameters
postMargin: Float

setPreMargin

Added in 1.1.0
fun setPreMargin(preMargin: Float): Unit

Set the preMargin of the reference

Parameters
preMargin: Float

setWeight

Added in 1.1.0
fun setWeight(weight: Float): Unit

Set the weight of the reference

Parameters
weight: Float

toString

fun toString(): String!