com.contentgrid.thunx.predicates.model.NumberValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thunx-model Show documentation
Show all versions of thunx-model Show documentation
Set of (vendor-neutral) data structures to model authorization policy expressions
package com.contentgrid.thunx.predicates.model;
import java.math.BigDecimal;
import lombok.EqualsAndHashCode;
import lombok.Getter;
@EqualsAndHashCode
class NumberValue implements Scalar {
@Getter
private BigDecimal value;
NumberValue(BigDecimal value) {
this.value = value;
}
@Override
public Class extends Number> getResultType() {
return Number.class;
}
@Override
public String toString() {
return this.getValue().toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy