public static int compareTo(
            ReadableInstant start, ReadableInstant end, ReadableInstant instant) {
        if (instant.isBefore(start)) {
            return 1;
        }

        if (end.isAfter(instant)) {
            return 0;
        }

        return -1;
    }
public static int compareTo ( ReadableInstant start , ReadableInstant end , ReadableInstant instant ) { if ( instant . isBefore ( start ) ) { return 1 ; } if ( end . isAfter ( instant ) ) { return 0 ; } return - 1 ; }
Determines if an instant is between a start (inclusive) and end (exclusive).

@param start start of range (inclusive)
@param end end of range (exclusive)
@param instant instant
@return Returns 0 if the instant is contained in the range: (getStart() <= instant <
getEnd()) Returns -1 if the range comes before the instant: (getEnd() <= instant) Returns
1 if the range comes after the instant (instant < getStart())
@see Comparable#compareTo(Object)