java.lang.Object
com.fasterxml.jackson.datatype.guava.deser.util.RangeFactory

public class RangeFactory extends Object
A factory for creating Guava Ranges 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
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static <C extends Comparable<?>> com.google.common.collect.Range<C> atLeast(C lowerEndpoint)
    • 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

      public static <C extends Comparable<?>> com.google.common.collect.Range<C> atMost(C upperEndpoint)
    • upTo

      public static <C extends Comparable<?>> com.google.common.collect.Range<C> upTo(C upperEndpoint, com.google.common.collect.BoundType upperBoundType)
    • all

      public static <C extends Comparable<?>> com.google.common.collect.Range<C> all()
    • singleton

      public static <C extends Comparable<?>> com.google.common.collect.Range<C> singleton(C value)