public class VersionRange extends Object
Constructor and Description |
---|
VersionRange(VersionNumber begin,
VersionNumber end) |
Modifier and Type | Method and Description |
---|---|
boolean |
after(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): After - self.begin.position > other.end.position
|
boolean |
before(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Before - self.end.position < other.begin.position
|
boolean |
begins(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Begins - self.begin.position = other.begin.position AND
self.end.position < other.end.position
|
boolean |
begunBy(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): BegunBy - self.begin.position = other.begin.position AND
self.end.position > other.end.position
|
boolean |
contains(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Contains - self.begin.position < other.begin.position AND
self.end.position > other.end.position
|
boolean |
containsNonStrict(VersionRange other)
OR-combination of begunBy, contains, equals, endedBy: self.begin.position
<= other.begin.position AND self.end.position >= other.end.position
|
VersionRange |
createCopy() |
boolean |
during(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): During - self.begin.position > other.begin.position AND
self.end.position < other.end.position
|
boolean |
endedBy(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): EndedBy - self.begin.position < other.begin.position AND
self.end.position = other.end.position
|
boolean |
ends(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Ends - self.begin.position > other.begin.position AND
self.end.position = other.end.position
|
boolean |
equals(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Equals - self.begin.position = other.begin.position AND
self.end.position = other.end.position
|
VersionNumber |
getBegin() |
VersionNumber |
getEnd() |
boolean |
meets(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Meets - self.end.position = other.begin.position
|
boolean |
metBy(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): MetBy - self.begin.position = other.end.position
|
boolean |
overlappedBy(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): OverlappedBy - self.begin.position > other.begin.position AND
self.begin.position < other.end.position AND self.end.position >
other.end.position
|
boolean |
overlaps(VersionRange other)
Uses the same expression as ISO 19108 (see TM_RelativePosition for time
periods): Overlaps - self.begin.position < other.begin.position AND
self.end.position > other.begin.position AND self.end.position <
other.end.position
|
String |
toString() |
VersionRange |
union(VersionRange other)
Creates a new VersionRange that is the union of both this range and the
other, iff this range is not before and not after the other.
|
public VersionRange(VersionNumber begin, VersionNumber end)
public boolean before(VersionRange other)
other
- public boolean meets(VersionRange other)
other
- public boolean overlaps(VersionRange other)
other
- public boolean begins(VersionRange other)
other
- public boolean begunBy(VersionRange other)
other
- public boolean during(VersionRange other)
other
- public boolean contains(VersionRange other)
other
- public boolean containsNonStrict(VersionRange other)
other
- public boolean equals(VersionRange other)
other
- public boolean overlappedBy(VersionRange other)
other
- public boolean ends(VersionRange other)
other
- public boolean endedBy(VersionRange other)
other
- public boolean metBy(VersionRange other)
other
- public boolean after(VersionRange other)
other
- public VersionRange union(VersionRange other)
other
- public VersionRange createCopy()
public VersionNumber getBegin()
public VersionNumber getEnd()
Copyright © 2017. All rights reserved.