Class RangeFactory
java.lang.Object
com.fasterxml.jackson.datatype.guava.deser.util.RangeFactory
A factory for creating Guava
Range
s that is compatible with Guava 14 and later.
NOTE: up until Jackson 2.9.x, supported versions from Guava 10 and higher; support for older versions dropped in Jackson 2.10.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Comparable<?>>
com.google.common.collect.Range<C> all()
static <C extends Comparable<?>>
com.google.common.collect.Range<C> atLeast
(C lowerEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> atMost
(C upperEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> closed
(C lowerEndpoint, C upperEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> closedOpen
(C lowerEndpoint, C upperEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> downTo
(C lowerEndpoint, com.google.common.collect.BoundType lowerBoundType) static <C extends Comparable<?>>
com.google.common.collect.Range<C> greaterThan
(C lowerEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> lessThan
(C upperEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> open
(C lowerEndpoint, C upperEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> openClosed
(C lowerEndpoint, C upperEndpoint) static <C extends Comparable<?>>
com.google.common.collect.Range<C> range
(C lowerEndpoint, com.google.common.collect.BoundType lowerBoundType, C upperEndpoint, com.google.common.collect.BoundType upperBoundType) static <C extends Comparable<?>>
com.google.common.collect.Range<C> singleton
(C value) static <C extends Comparable<?>>
com.google.common.collect.Range<C> upTo
(C upperEndpoint, com.google.common.collect.BoundType upperBoundType)
-
Constructor Details
-
RangeFactory
private RangeFactory()
-
-
Method Details
-
open
public static <C extends Comparable<?>> com.google.common.collect.Range<C> open(C lowerEndpoint, C upperEndpoint) -
openClosed
public static <C extends Comparable<?>> com.google.common.collect.Range<C> openClosed(C lowerEndpoint, C upperEndpoint) -
closedOpen
public static <C extends Comparable<?>> com.google.common.collect.Range<C> closedOpen(C lowerEndpoint, C upperEndpoint) -
closed
public static <C extends Comparable<?>> com.google.common.collect.Range<C> closed(C lowerEndpoint, C upperEndpoint) -
range
public static <C extends Comparable<?>> com.google.common.collect.Range<C> range(C lowerEndpoint, com.google.common.collect.BoundType lowerBoundType, C upperEndpoint, com.google.common.collect.BoundType upperBoundType) -
greaterThan
public static <C extends Comparable<?>> com.google.common.collect.Range<C> greaterThan(C lowerEndpoint) -
atLeast
-
downTo
public static <C extends Comparable<?>> com.google.common.collect.Range<C> downTo(C lowerEndpoint, com.google.common.collect.BoundType lowerBoundType) -
lessThan
public static <C extends Comparable<?>> com.google.common.collect.Range<C> lessThan(C upperEndpoint) -
atMost
-
upTo
public static <C extends Comparable<?>> com.google.common.collect.Range<C> upTo(C upperEndpoint, com.google.common.collect.BoundType upperBoundType) -
all
-
singleton
-