All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.contentgrid.thunx.predicates.model.NumberValue Maven / Gradle / Ivy

Go to download

Set of (vendor-neutral) data structures to model authorization policy expressions

There is a newer version: 0.11.0
Show newest version
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 getResultType() {
        return Number.class;
    }

    @Override
    public String toString() {
        return this.getValue().toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy