Package | Description |
---|---|
com.vaadin.flow.internal |
Modifier and Type | Method and Description |
---|---|
static Range |
Range.between(int start,
int end)
Creates a range between two integers.
|
Range |
Range.combineWith(Range other)
Combines two ranges to create a range containing all values in both
ranges, provided there are no gaps between the ranges.
|
Range |
Range.expand(int startDelta,
int endDelta)
Creates a range that is expanded the given amounts in both ends.
|
Range |
Range.offsetBy(int offset)
Get a range that is based on this one, but offset by a number.
|
Range[] |
Range.partitionWith(Range other)
Overlay this range with another one, and partition the ranges according
to how they position relative to each other.
|
Range |
Range.restrictTo(Range bounds)
Limits this range to be within the bounds of the provided range.
|
Range[] |
Range.splitAt(int integer)
Split the range into two at a certain integer.
|
Range[] |
Range.splitAtFromStart(int length)
Split the range into two after a certain number of integers into the
range.
|
static Range |
Range.withLength(int start,
int length)
Creates a range from a start point, with a given length.
|
static Range |
Range.withOnly(int integer)
Creates a range object representing a single integer.
|
Modifier and Type | Method and Description |
---|---|
Range |
Range.combineWith(Range other)
Combines two ranges to create a range containing all values in both
ranges, provided there are no gaps between the ranges.
|
boolean |
Range.endsAfter(Range other)
Checks whether this range ends after the end of another range.
|
boolean |
Range.endsBefore(Range other)
Checks whether this range ends before the start of another range.
|
boolean |
Range.intersects(Range other)
Checks whether this range and another range are at least partially
covering the same values.
|
boolean |
Range.isSubsetOf(Range other)
Checks whether this range is a subset of another range.
|
Range[] |
Range.partitionWith(Range other)
Overlay this range with another one, and partition the ranges according
to how they position relative to each other.
|
Range |
Range.restrictTo(Range bounds)
Limits this range to be within the bounds of the provided range.
|
boolean |
Range.startsAfter(Range other)
Checks whether this range starts after the end of another range.
|
boolean |
Range.startsBefore(Range other)
Checks whether this range starts before the start of another range.
|
Copyright © 2018. All rights reserved.