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

tech.ydb.table.description.KeyBound Maven / Gradle / Ivy

package tech.ydb.table.description;

import tech.ydb.table.values.Value;

public class KeyBound {
    private final Value value;
    private final boolean inclusive;

    public KeyBound(
            Value value,
            boolean inclusive
    ) {
        this.value = value;
        this.inclusive = inclusive;
    }

    public Value getValue() {
        return value;
    }

    public boolean isInclusive() {
        return inclusive;
    }

    public static KeyBound inclusive(Value value) {
        return new KeyBound(value, true);
    }

    public static KeyBound exclusive(Value value) {
        return new KeyBound(value, false);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy