com.github.shyiko.mysql.binlog
Class GtidSet.Interval

java.lang.Object
  extended by com.github.shyiko.mysql.binlog.GtidSet.Interval
All Implemented Interfaces:
Comparable<GtidSet.Interval>
Enclosing class:
GtidSet

public static final class GtidSet.Interval
extends Object
implements Comparable<GtidSet.Interval>

An interval of contiguous transaction identifiers.

See Also:
GtidSet

Method Summary
 int compareTo(GtidSet.Interval o)
           
 boolean equals(Object obj)
           
 long getEnd()
          Get the ending transaction number in this interval.
 long getStart()
          Get the starting transaction number in this interval.
 int hashCode()
           
 boolean isContainedWithin(GtidSet.Interval other)
          Determine if this interval is completely within the supplied interval.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getStart

public long getStart()
Get the starting transaction number in this interval.

Returns:
this interval's first transaction number

getEnd

public long getEnd()
Get the ending transaction number in this interval.

Returns:
this interval's last transaction number

isContainedWithin

public boolean isContainedWithin(GtidSet.Interval other)
Determine if this interval is completely within the supplied interval.

Parameters:
other - the interval to compare with
Returns:
true if the start is greater than or equal to the supplied interval's start and the end is less than or equal to the supplied interval's end, or false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(GtidSet.Interval o)
Specified by:
compareTo in interface Comparable<GtidSet.Interval>


Copyright © 2017. All Rights Reserved.