| Package | Description |
|---|---|
| jlibs.core.util |
| Modifier and Type | Method and Description |
|---|---|
Range |
Range.intersection(Range that)
return the portion of range that is common to this range and given range.
If there is nothing common, then null is returned. |
Range[] |
Range.minus(Range that)
returns the portion(s) of this range that are not present in given range.
|
Range[] |
Range.split(Range that)
this method splits this range into 3 regions with respect to given range
|
Range[] |
Range.union(Range that)
returns union of this range with given range.
if both ranges are adjacent/intersecting to each other, then the returned array will have only one range. |
| Modifier and Type | Method and Description |
|---|---|
static List<Range> |
Range.intersection(List<Range> list1,
List<Range> list2) |
static List<Range> |
Range.minus(List<Range> list1,
List<Range> list2) |
static List<Range> |
Range.union(List<Range> ranges) |
| Modifier and Type | Method and Description |
|---|---|
Range |
Range.intersection(Range that)
return the portion of range that is common to this range and given range.
If there is nothing common, then null is returned. |
Range[] |
Range.minus(Range that)
returns the portion(s) of this range that are not present in given range.
|
boolean[] |
Range.position(Range that)
tells the position this range with respect to given range.
|
Range[] |
Range.split(Range that)
this method splits this range into 3 regions with respect to given range
|
Range[] |
Range.union(Range that)
returns union of this range with given range.
if both ranges are adjacent/intersecting to each other, then the returned array will have only one range. |
| Modifier and Type | Method and Description |
|---|---|
static List<Range> |
Range.intersection(List<Range> list1,
List<Range> list2) |
static List<Range> |
Range.intersection(List<Range> list1,
List<Range> list2) |
static List<Range> |
Range.minus(List<Range> list1,
List<Range> list2) |
static List<Range> |
Range.minus(List<Range> list1,
List<Range> list2) |
static boolean |
Range.same(List<Range> list1,
List<Range> list2) |
static boolean |
Range.same(List<Range> list1,
List<Range> list2) |
static List<Range> |
Range.union(List<Range> ranges) |
Copyright © 2021. All rights reserved.