Home
last modified time | relevance | path

Searched refs:getUnit (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DMockSimplePeriod.java135 public TemporalUnit getUnit() { in getUnit() method in MockSimplePeriod
153 if (unit.equals(otherPeriod.getUnit()) == false) { in compareTo()
154 …ew IllegalArgumentException("Units cannot be compared: " + unit + " and " + otherPeriod.getUnit()); in compareTo()
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java135 public TemporalUnit getUnit() { in getUnit() method in MockSimplePeriod
153 if (unit.equals(otherPeriod.getUnit()) == false) { in compareTo()
154 …ew IllegalArgumentException("Units cannot be compared: " + unit + " and " + otherPeriod.getUnit()); in compareTo()