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

cdc.applic.expressions.content.Position Maven / Gradle / Ivy

There is a newer version: 0.13.3
Show newest version
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