congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Range$Bound.unbounded
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-data-mongodb

/**
 * Set {@literal maximum} to given {@code max} value and {@literal exclusiveMaximum} to {@literal true}.
 *
 * @param max must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
public NumericJsonSchemaObject lt(Number max) {
  Assert.notNull(max, "Max must not be null!");
  Bound lower = this.range != null ? this.range.getLowerBound() : Bound.unbounded();
  return within(Range.of(lower, createBound(max, false)));
}
origin: spring-projects/spring-data-mongodb

/**
 * Set {@literal maximum} to given {@code max} value and {@literal exclusiveMaximum} to {@literal false}.
 *
 * @param max must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
NumericJsonSchemaObject lte(Number max) {
  Assert.notNull(max, "Max must not be null!");
  Bound lower = this.range != null ? this.range.getLowerBound() : Bound.unbounded();
  return within(Range.of(lower, createBound(max, true)));
}
origin: spring-projects/spring-data-mongodb

/**
 * Set {@literal minimum} to given {@code min} value and {@literal exclusiveMinimum} to {@literal true}.
 *
 * @param min must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
public NumericJsonSchemaObject gt(Number min) {
  Assert.notNull(min, "Min must not be null!");
  Bound upper = this.range != null ? this.range.getUpperBound() : Bound.unbounded();
  return within(Range.of(createBound(min, false), upper));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Define the valid length range ({@literal maxLength}) for a valid field.
 *
 * @param length
 * @return new instance of {@link StringJsonSchemaObject}.
 */
public StringJsonSchemaObject maxLength(int length) {
  Bound<Integer> lower = this.length != null ? this.length.getLowerBound() : Bound.unbounded();
  return length(Range.of(lower, Bound.inclusive(length)));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Define the {@literal minProperties}.
 *
 * @param count the allowed minimal number of properties.
 * @return new instance of {@link ObjectJsonSchemaObject}.
 */
public ObjectJsonSchemaObject minProperties(int count) {
  Bound<Integer> upper = this.propertiesCount != null ? this.propertiesCount.getUpperBound() : Bound.unbounded();
  return propertiesCount(Range.of(Bound.inclusive(count), upper));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Set {@literal maximum} to given {@code max} value and {@literal exclusiveMaximum} to {@literal false}.
 *
 * @param max must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
NumericJsonSchemaObject lte(Number max) {
  Assert.notNull(max, "Max must not be null!");
  Bound lower = this.range != null ? this.range.getLowerBound() : Bound.unbounded();
  return within(Range.of(lower, createBound(max, true)));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Set {@literal minimum} to given {@code min} value and {@literal exclusiveMinimum} to {@literal false}.
 *
 * @param min must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
public NumericJsonSchemaObject gte(Number min) {
  Assert.notNull(min, "Min must not be null!");
  Bound upper = this.range != null ? this.range.getUpperBound() : Bound.unbounded();
  return within(Range.of(createBound(min, true), upper));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Set {@literal minimum} to given {@code min} value and {@literal exclusiveMinimum} to {@literal true}.
 *
 * @param min must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
public NumericJsonSchemaObject gt(Number min) {
  Assert.notNull(min, "Min must not be null!");
  Bound upper = this.range != null ? this.range.getUpperBound() : Bound.unbounded();
  return within(Range.of(createBound(min, false), upper));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Define the {@literal maxProperties}.
 *
 * @param count the allowed maximum number of properties.
 * @return new instance of {@link ObjectJsonSchemaObject}.
 */
public ObjectJsonSchemaObject maxProperties(int count) {
  Bound<Integer> lower = this.propertiesCount != null ? this.propertiesCount.getLowerBound() : Bound.unbounded();
  return propertiesCount(Range.of(lower, Bound.inclusive(count)));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Define the valid length range ({@literal minLength}) for a valid field.
 *
 * @param length
 * @return new instance of {@link StringJsonSchemaObject}.
 */
public StringJsonSchemaObject minLength(int length) {
  Bound<Integer> upper = this.length != null ? this.length.getUpperBound() : Bound.unbounded();
  return length(Range.of(Bound.inclusive(length), upper));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Set {@literal maximum} to given {@code max} value and {@literal exclusiveMaximum} to {@literal true}.
 *
 * @param max must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
public NumericJsonSchemaObject lt(Number max) {
  Assert.notNull(max, "Max must not be null!");
  Bound lower = this.range != null ? this.range.getLowerBound() : Bound.unbounded();
  return within(Range.of(lower, createBound(max, false)));
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Define the {@literal maxItems}.
 *
 * @param count the allowed minimal number of array items.
 * @return new instance of {@link ArrayJsonSchemaObject}.
 */
public ArrayJsonSchemaObject minItems(int count) {
  Bound<Integer> upper = this.range != null ? this.range.getUpperBound() : Bound.unbounded();
  return range(Range.of(Bound.inclusive(count), upper));
}
origin: spring-projects/spring-data-mongodb

/**
 * Define the {@literal maxItems}.
 *
 * @param count the allowed maximal number of array items.
 * @return new instance of {@link ArrayJsonSchemaObject}.
 */
public ArrayJsonSchemaObject maxItems(int count) {
  Bound<Integer> lower = this.range != null ? this.range.getLowerBound() : Bound.unbounded();
  return range(Range.of(lower, Bound.inclusive(count)));
}
origin: spring-projects/spring-data-mongodb

/**
 * Set {@literal minimum} to given {@code min} value and {@literal exclusiveMinimum} to {@literal false}.
 *
 * @param min must not be {@literal null}.
 * @return new instance of {@link NumericJsonSchemaObject}.
 */
@SuppressWarnings("unchecked")
public NumericJsonSchemaObject gte(Number min) {
  Assert.notNull(min, "Min must not be null!");
  Bound upper = this.range != null ? this.range.getUpperBound() : Bound.unbounded();
  return within(Range.of(createBound(min, true), upper));
}
origin: spring-projects/spring-data-mongodb

/**
 * Define the {@literal maxProperties}.
 *
 * @param count the allowed maximum number of properties.
 * @return new instance of {@link ObjectJsonSchemaObject}.
 */
public ObjectJsonSchemaObject maxProperties(int count) {
  Bound<Integer> lower = this.propertiesCount != null ? this.propertiesCount.getLowerBound() : Bound.unbounded();
  return propertiesCount(Range.of(lower, Bound.inclusive(count)));
}
origin: spring-projects/spring-data-mongodb

public Range<Distance> getDistanceRange() {
  MongoParameters mongoParameters = method.getParameters();
  int rangeIndex = mongoParameters.getRangeIndex();
  if (rangeIndex != -1) {
    return getValue(rangeIndex);
  }
  int maxDistanceIndex = mongoParameters.getMaxDistanceIndex();
  Bound<Distance> maxDistance = maxDistanceIndex == -1 ? Bound.unbounded() : Bound.inclusive((Distance) getValue(maxDistanceIndex));
  return Range.of(Bound.unbounded(), maxDistance);
}
origin: spring-projects/spring-data-mongodb

/**
 * Define the {@literal maxItems}.
 *
 * @param count the allowed minimal number of array items.
 * @return new instance of {@link ArrayJsonSchemaObject}.
 */
public ArrayJsonSchemaObject minItems(int count) {
  Bound<Integer> upper = this.range != null ? this.range.getUpperBound() : Bound.unbounded();
  return range(Range.of(Bound.inclusive(count), upper));
}
origin: spring-projects/spring-data-mongodb

/**
 * Define the valid length range ({@literal maxLength}) for a valid field.
 *
 * @param length
 * @return new instance of {@link StringJsonSchemaObject}.
 */
public StringJsonSchemaObject maxLength(int length) {
  Bound<Integer> lower = this.length != null ? this.length.getLowerBound() : Bound.unbounded();
  return length(Range.of(lower, Bound.inclusive(length)));
}
origin: spring-projects/spring-data-mongodb

/**
 * Define the valid length range ({@literal minLength}) for a valid field.
 *
 * @param length
 * @return new instance of {@link StringJsonSchemaObject}.
 */
public StringJsonSchemaObject minLength(int length) {
  Bound<Integer> upper = this.length != null ? this.length.getUpperBound() : Bound.unbounded();
  return length(Range.of(Bound.inclusive(length), upper));
}
origin: spring-projects/spring-data-mongodb

/**
 * Define the {@literal minProperties}.
 *
 * @param count the allowed minimal number of properties.
 * @return new instance of {@link ObjectJsonSchemaObject}.
 */
public ObjectJsonSchemaObject minProperties(int count) {
  Bound<Integer> upper = this.propertiesCount != null ? this.propertiesCount.getUpperBound() : Bound.unbounded();
  return propertiesCount(Range.of(Bound.inclusive(count), upper));
}
org.springframework.data.domainRange$Boundunbounded

Javadoc

Creates an unbounded Bound.

Popular methods of Range$Bound

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

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Permission (java.security)
    Legacy security code; do not use.
  • 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
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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