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

com.yandex.ydb.table.description.KeyBound Maven / Gradle / Ivy

There is a newer version: 1.45.6
Show newest version
package com.yandex.ydb.table.description;

import com.yandex.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