T - 可比较的public abstract class Section<T extends Comparable<T>> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Section.Builder<T extends Comparable<T>,S extends Section<T>> |
| 限定符和类型 | 方法和说明 |
|---|---|
protected T |
cloneObject(T t) |
T |
getEnd() |
T |
getStart() |
static <T extends Comparable<T>,S extends Section<T>> |
intersect(List<S> s1,
List<S> s2,
Section.Builder<T,S> builder)
求交集
|
static <T extends Comparable<T>,S extends Section<T>> |
merge(List<S> sections,
Section.Builder<T,S> builder) |
static <T extends Comparable<T>,S extends Section<T>> |
sub(List<S> subtractedList,
List<S> subtractionList,
Section.Builder<T,S> builder) |
String |
toString() |
public static <T extends Comparable<T>,S extends Section<T>> List<S> merge(List<S> sections, Section.Builder<T,S> builder)
T - ComparableS - Sectionsections - 一组线段public static <T extends Comparable<T>,S extends Section<T>> List<S> intersect(List<S> s1, List<S> s2, Section.Builder<T,S> builder)
T - ComparableS - Sections1 - 组1s2 - 组2builder - S的builderpublic static <T extends Comparable<T>,S extends Section<T>> List<S> sub(List<S> subtractedList, List<S> subtractionList, Section.Builder<T,S> builder)
T - ComparableS - SectionsubtractedList - 被减线段集合subtractionList - 减数线段集合builder - S的builderpublic T getStart()
public T getEnd()
Copyright © 2021. All rights reserved.