Class Ref
- java.lang.Object
-
- androidx.constraintlayout.core.dsl.Ref
-
public class Ref extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddStringToReferences(java.lang.String str, java.util.ArrayList<Ref> refs)Add references in a String representation to a Ref ArrayList Used to add the Ref(s) property in the Config to referencesjava.lang.StringgetId()Get the Id of the referencefloatgetPostMargin()Get the postMargin of the referencefloatgetPreMargin()Get the preMargin of the referencefloatgetWeight()Get the weight of the referencestatic floatparseFloat(java.lang.Object obj)Try to parse an object into a float numberstatic RefparseStringToRef(java.lang.String str)voidsetId(java.lang.String id)Set the Id of the referencevoidsetPostMargin(float postMargin)Set the postMargin of the referencevoidsetPreMargin(float preMargin)Set the preMargin of the referencevoidsetWeight(float weight)Set the weight of the referencejava.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Get the Id of the reference- Returns:
- the Id of the reference
-
setId
public void setId(java.lang.String id)
Set the Id of the reference- Parameters:
id-
-
getWeight
public float getWeight()
Get the weight of the reference- Returns:
- the weight of the reference
-
setWeight
public void setWeight(float weight)
Set the weight of the reference- Parameters:
weight-
-
getPreMargin
public float getPreMargin()
Get the preMargin of the reference- Returns:
- the preMargin of the reference
-
setPreMargin
public void setPreMargin(float preMargin)
Set the preMargin of the reference- Parameters:
preMargin-
-
getPostMargin
public float getPostMargin()
Get the postMargin of the reference- Returns:
- the preMargin of the reference
-
setPostMargin
public void setPostMargin(float postMargin)
Set the postMargin of the reference- Parameters:
postMargin-
-
parseFloat
public static float parseFloat(java.lang.Object obj)
Try to parse an object into a float number- Parameters:
obj- object to be parsed- Returns:
- a number
-
parseStringToRef
public static Ref parseStringToRef(java.lang.String str)
-
addStringToReferences
public static void addStringToReferences(java.lang.String str, java.util.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:
str- references in a String representationrefs- a Ref ArrayList
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-