Example usage for com.google.common.primitives UnsignedInteger ONE

List of usage examples for com.google.common.primitives UnsignedInteger ONE

Introduction

In this page you can find the example usage for com.google.common.primitives UnsignedInteger ONE.

Prototype

UnsignedInteger ONE

To view the source code for com.google.common.primitives UnsignedInteger ONE.

Click Source Link

Usage

From source file:com.lyndir.masterpassword.impl.MPAlgorithmV0.java

@Override
public UnsignedInteger mpw_default_counter() {
    return UnsignedInteger.ONE;
}

From source file:com.mrd.bitlib.model.Transaction.java

/**
 * Returns true if this transaction is marked for RBF and thus can easily get replaced by a
 * conflicting transaction while it is still unconfirmed.
 *
 * @return true if any of its inputs has a nSequence < MAX_INT-1
 *///  w w w .j  a  v a2  s .c o m
public boolean isRbfAble() {
    if (_rbfAble == null) {
        _rbfAble = (getMinSequenceNumber().compareTo(UnsignedInteger.MAX_VALUE.minus(UnsignedInteger.ONE)) < 0);
    }
    return _rbfAble;
}