congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Range$Bound.exclusive
Code IndexAdd Tabnine to your IDE (free)

How to use
exclusive
method
in
org.springframework.data.domain.Range$Bound

Best Java code snippets using org.springframework.data.domain.Range$Bound.exclusive (Showing top 8 results out of 315)

origin: spring-projects/spring-data-mongodb

private static Bound<?> createBound(Number number, boolean inclusive) {
  if (number instanceof Long) {
    return inclusive ? Bound.inclusive((Long) number) : Bound.exclusive((Long) number);
  }
  if (number instanceof Double) {
    return inclusive ? Bound.inclusive((Double) number) : Bound.exclusive((Double) number);
  }
  if (number instanceof Float) {
    return inclusive ? Bound.inclusive((Float) number) : Bound.exclusive((Float) number);
  }
  if (number instanceof Integer) {
    return inclusive ? Bound.inclusive((Integer) number) : Bound.exclusive((Integer) number);
  }
  if (number instanceof BigDecimal) {
    return inclusive ? Bound.inclusive((BigDecimal) number) : Bound.exclusive((BigDecimal) number);
  }
  throw new IllegalArgumentException("Unsupported numeric value.");
}
origin: org.springframework.data/spring-data-mongodb

private static Bound<?> createBound(Number number, boolean inclusive) {
  if (number instanceof Long) {
    return inclusive ? Bound.inclusive((Long) number) : Bound.exclusive((Long) number);
  }
  if (number instanceof Double) {
    return inclusive ? Bound.inclusive((Double) number) : Bound.exclusive((Double) number);
  }
  if (number instanceof Float) {
    return inclusive ? Bound.inclusive((Float) number) : Bound.exclusive((Float) number);
  }
  if (number instanceof Integer) {
    return inclusive ? Bound.inclusive((Integer) number) : Bound.exclusive((Integer) number);
  }
  if (number instanceof BigDecimal) {
    return inclusive ? Bound.inclusive((BigDecimal) number) : Bound.exclusive((BigDecimal) number);
  }
  throw new IllegalArgumentException("Unsupported numeric value.");
}
origin: st-tu-dresden/salespoint

private OrderLine getRequiredOrderLineByIndex(int index) {
  Range<Integer> allowedIndexRange = Range.from(Bound.inclusive(0))//
      .to(Bound.exclusive(orderLines.size()));
  Assert.isTrue(allowedIndexRange.contains(index),
      String.format("Invalid order line index %s. Required: %s!", index, allowedIndexRange));
  return this.orderLines.get(index);
}
origin: apache/servicemix-bundles

/**
 * Creates a new {@link Range} with the given lower and upper bound as well as the given inclusive/exclusive
 * semantics.
 *
 * @param lowerBound can be {@literal null}.
 * @param upperBound can be {@literal null}.
 * @param lowerInclusive
 * @param upperInclusive
 * @deprecated since 2.0. Use {@link Range#of(Bound, Bound)} and {@link Bound} factory methods:
 *             {@link Bound#inclusive(Comparable)}, {@link Bound#exclusive(Comparable)}/{@link Bound#unbounded()}.
 */
@Deprecated
public Range(T lowerBound, T upperBound, boolean lowerInclusive, boolean upperInclusive) {
  this.lowerBound = lowerBound == null ? Bound.unbounded()
      : lowerInclusive ? Bound.inclusive(lowerBound) : Bound.exclusive(lowerBound);
  this.upperBound = upperBound == null ? Bound.unbounded()
      : upperInclusive ? Bound.inclusive(upperBound) : Bound.exclusive(upperBound);
}
origin: apache/servicemix-bundles

/**
 * Creates a boundary excluding {@code value}.
 *
 * @param value must not be {@literal null}.
 * @return
 */
public static Bound<Integer> exclusive(int value) {
  return exclusive((Integer) value);
}
origin: apache/servicemix-bundles

/**
 * Creates a boundary excluding {@code value}.
 *
 * @param value must not be {@literal null}.
 * @return
 */
public static Bound<Float> exclusive(float value) {
  return exclusive((Float) value);
}
origin: apache/servicemix-bundles

/**
 * Creates a boundary excluding {@code value}.
 *
 * @param value must not be {@literal null}.
 * @return
 */
public static Bound<Long> exclusive(long value) {
  return exclusive((Long) value);
}
origin: apache/servicemix-bundles

/**
 * Creates a boundary excluding {@code value}.
 *
 * @param value must not be {@literal null}.
 * @return
 */
public static Bound<Double> exclusive(double value) {
  return exclusive((Double) value);
}
org.springframework.data.domainRange$Boundexclusive

Javadoc

Creates a boundary excluding value.

Popular methods of Range$Bound

  • getValue
  • inclusive
  • isInclusive
  • isBounded
  • unbounded
  • <init>
  • toPrefixString
  • toSuffixString

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now