MCPcopy Create free account
hub / github.com/MenoData/Time4J / isEmpty

Method isEmpty

base/src/main/java/net/time4j/range/IsoInterval.java:398–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396 }
397
398 @Override
399 public boolean isEmpty() {
400
401 if (!this.isFinite()) {
402 return false;
403 }
404
405 T s = this.start.getTemporal();
406 T e = this.end.getTemporal();
407
408 if (this.start.isOpen()) {
409 if (this.end.isClosed()) {
410 return s.isSimultaneous(e);
411 }
412 s = this.getTimeLine().stepForward(s);
413 if (s == null) {
414 return false;
415 }
416 }
417
418 return (this.end.isOpen() && s.isSimultaneous(e));
419
420 }
421
422 @Override
423 public boolean isBefore(T temporal) {

Callers 3

intersectsMethod · 0.95
findIntersectionMethod · 0.95
abutsMethod · 0.95

Calls 7

getTimeLineMethod · 0.95
getTemporalMethod · 0.80
isOpenMethod · 0.80
isClosedMethod · 0.80
isFiniteMethod · 0.65
isSimultaneousMethod · 0.65
stepForwardMethod · 0.65

Tested by

no test coverage detected