public class CLNumber extends CLElement


Summary

Public constructors

CLNumber(char[] content)
CLNumber(float value)

Public methods

static CLElement
allocate(char[] content)
boolean
float
int
int
boolean
void
putValue(float value)

Protected methods

String
toFormattedJSON(int indent, int forceIndent)
String

Inherited methods

From androidx.constraintlayout.core.parser.CLElement
void
addIndent(StringBuilder builder, int indent)
@NonNull CLElement
String
CLElement
String
long

The character index this element was ended on

int

get the line Number

long

The character index this element was started on

String
boolean

Whether this element has any valid content defined.

boolean
boolean
boolean
void
void
setEnd(long end)
void
setLine(int line)
void
setStart(long start)
String

Public constructors

CLNumber

Added in 1.1.0-alpha13
public CLNumber(char[] content)

CLNumber

Added in 1.1.0-alpha13
public CLNumber(float value)

Public methods

allocate

Added in 1.1.0-alpha13
public static CLElement allocate(char[] content)

equals

public boolean equals(Object obj)

getFloat

public float getFloat()

getInt

public int getInt()

hashCode

public int hashCode()

isInt

Added in 1.1.0-alpha13
public boolean isInt()

putValue

Added in 1.1.0-alpha13
public void putValue(float value)

Protected methods

toFormattedJSON

protected String toFormattedJSON(int indent, int forceIndent)

toJSON

protected String toJSON()