コード例 #1
0
 /**
  * Returns the upper endpoint of this range.
  *
  * @throws IllegalStateException if this range is unbounded above (that is, {@link
  *     #hasUpperBound()} returns {@code false})
  */
 public C upperEndpoint() {
   return upperBound.endpoint();
 }
コード例 #2
0
 /**
  * Returns the lower endpoint of this range.
  *
  * @throws IllegalStateException if this range is unbounded below (that is, {@link
  *     #hasLowerBound()} returns {@code false})
  */
 public C lowerEndpoint() {
   return lowerBound.endpoint();
 }