public class CDOChangeSetSegment extends Object implements CDOBranchPoint
Modifier and Type | Class and Description |
---|---|
static interface |
CDOChangeSetSegment.Handler |
INVALID_DATE, UNSPECIFIED_DATE
Constructor and Description |
---|
CDOChangeSetSegment(CDOBranch branch,
long timeStamp,
long endTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(CDOBranchPoint branchPoint) |
static boolean |
contains(CDOChangeSetSegment[] segments,
CDOBranchPoint branchPoint) |
static CDOChangeSetSegment[] |
createFrom(CDOBranchPoint startPoint,
CDOBranchPoint endPoint) |
static CDOChangeSetSegment[] |
createFrom(long startTime,
CDOBranchPoint endPoint) |
CDOBranch |
getBranch()
Returns the branch of this branch point, or
null if this branch point is the
base of the main branch . |
CDOBranchPoint |
getEndPoint() |
long |
getEndTime() |
long |
getTimeStamp()
Returns the time stamp of this branch point, or the fixed special time stamp
unspecified if this branch point marks the head of a branch. |
static void |
handleSegments(CDOBranchPoint startPoint,
CDOBranchPoint endPoint,
CDOChangeSetSegment.Handler handler) |
static void |
handleSegments(CDOBranchPoint endPoint,
CDOChangeSetSegment.Handler handler) |
static void |
handleSegments(long startTime,
CDOBranchPoint endPoint,
CDOChangeSetSegment.Handler handler) |
boolean |
isOpenEnded() |
String |
toString() |
public CDOChangeSetSegment(CDOBranch branch, long timeStamp, long endTime)
public CDOBranch getBranch()
CDOBranchPoint
null
if this branch point is the
base
of the main branch
.getBranch
in interface CDOBranchPoint
getBranch
in interface CDOBranchProvider
public long getTimeStamp()
CDOBranchPoint
unspecified
if this branch point marks the head
of a branch.getTimeStamp
in interface CDOBranchPoint
getTimeStamp
in interface CDOTimeProvider
public long getEndTime()
public CDOBranchPoint getEndPoint()
public boolean isOpenEnded()
public boolean contains(CDOBranchPoint branchPoint)
public static void handleSegments(CDOBranchPoint endPoint, CDOChangeSetSegment.Handler handler)
public static void handleSegments(long startTime, CDOBranchPoint endPoint, CDOChangeSetSegment.Handler handler)
public static void handleSegments(CDOBranchPoint startPoint, CDOBranchPoint endPoint, CDOChangeSetSegment.Handler handler)
public static CDOChangeSetSegment[] createFrom(long startTime, CDOBranchPoint endPoint)
public static CDOChangeSetSegment[] createFrom(CDOBranchPoint startPoint, CDOBranchPoint endPoint)
public static boolean contains(CDOChangeSetSegment[] segments, CDOBranchPoint branchPoint)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html