public class RangeUtils extends Object
| コンストラクタと説明 |
|---|
RangeUtils() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static List<CircularRange<DdllKey>> |
concatAdjacentRanges(List<CircularRange<DdllKey>> ranges) |
static <K extends Comparable<K>> |
hasCommon(Range<K> range,
K from,
K to) |
static <K extends Comparable<K>> |
removedRange(Range<K> r,
K a,
K b)
Range r から,[a, b) の区間を削除したときの,削除された Range を返す.
|
static <K extends Comparable<K>> |
retainRange(CircularRange<K> r,
K a,
K b)
Range r から,[a, b) の区間を削除し,残った Range を返す.
|
public static <K extends Comparable<K>> CircularRange<K> retainRange(CircularRange<K> r, K a, K b)
K - the type of comparable.r - the range.a - the left side key.b - the right side key.public static <K extends Comparable<K>> Range<K> removedRange(Range<K> r, K a, K b)
K - the type of comparable.r - the range.a - the left side key.b - the right side key.public static List<CircularRange<DdllKey>> concatAdjacentRanges(List<CircularRange<DdllKey>> ranges)
public static <K extends Comparable<K>> boolean hasCommon(Range<K> range, K from, K to)
Copyright © 2017. All rights reserved.