public class CDOChangeSetSegment extends java.lang.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() |
java.lang.String |
toString() |
public CDOChangeSetSegment(CDOBranch branch, long timeStamp, long endTime)
public CDOBranch getBranch()
CDOBranchPointnull if this branch point is the
base of the main branch.getBranch in interface CDOBranchPointgetBranch in interface CDOBranchProviderpublic long getTimeStamp()
CDOBranchPointunspecified if this branch point marks the head of a branch.getTimeStamp in interface CDOBranchPointgetTimeStamp in interface CDOTimeProviderpublic long getEndTime()
public CDOBranchPoint getEndPoint()
public boolean isOpenEnded()
public boolean contains(CDOBranchPoint branchPoint)
public java.lang.String toString()
toString in class java.lang.Objectpublic 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) 2004-2019 Eike Stepper (Loehne, 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