All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.lshift.diffa.participant.scanning.RangeConstraint Maven / Gradle / Ivy

Go to download

Diffa Participant Support provides tools for implementing Diffa participants in Java (and other JVM languages)

There is a newer version: 1.5.10
Show newest version
package net.lshift.diffa.participant.scanning;

/**
 * Marker interface for constraints that constrain over a range of values.
 */
public interface RangeConstraint extends ScanConstraint {

  /**
   * The start of this range as a string. The specific format will depend on the concrete implementation.
   *
   * This will return null if the start value has not been set (i.e. the constraint has no lower bound)
   *
   * @return the starting value.
   */
  public String getStartText();

  /**
   * The end of this range as a string. The specific format will depend on the concrete implementation.
   *
   * This will return null if the end value has not been set (i.e. the constraint has no upper bound)
   *
   * @return the ending value.
   */
  public String getEndText();

  /**
   * Indicates whether this constraint has a lower bound.
   * @return True if this constraint has a lower bound.
   */
  public boolean hasLowerBound();

  /**
   * Indicates whether this constraint has a lower bound.
   * @return True if this constraint has a lower bound.
   */
  public boolean hasUpperBound();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy