cdc.applic.expressions.content.Position Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdc-applic-expressions Show documentation
Show all versions of cdc-applic-expressions Show documentation
Applicabilities Expressions.
package cdc.applic.expressions.content;
/**
* Relative position of 2 items.
*
* Used for standard values and ranges.
*
* @author Damien Carbonne
*/
public enum Position {
/**
* Item 1 is before (less than) and disjoint from Item 2.
*
* ===I1===
* ===I2===
*
*/
DISJOINT_PRED,
/**
* Item 1 is before (less than) and adjoint to Item 2.
*
* ===I1===
* ===I2===
*
*/
ADJOINT_PRED,
/**
* Item 1 and Item 2 are overlapping (ranges) or equal (simple values).
*
* ===I1===
* ===I2===
* ========I1========
* ===I2===
* ===I1===
* ===I2===
*
*/
OVERLAPPING,
/**
* Item 1 is after (greater than) and adjoint to Item 2.
*
* ===I1===
* ===I2===
*
*/
ADJOINT_SUCC,
/**
* Item 1 is after (greater than) and disjoint from Item 2.
*
* ===I1===
* ===I2===
*
*/
DISJOINT_SUCC;
public boolean isAdjoint() {
return this == ADJOINT_PRED || this == ADJOINT_SUCC;
}
public boolean isDisjoint() {
return this == DISJOINT_PRED || this == DISJOINT_SUCC;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy