The OpenD Programming Language

NegInfInterval.isAdjacent

Whether the given interval is adjacent to this interval.

  1. bool isAdjacent(Interval!TP interval)
  2. bool isAdjacent(PosInfInterval!TP interval)
    struct NegInfInterval(TP)
    const pure nothrow
    bool
    isAdjacent
    (
    scope const PosInfInterval!TP interval
    )
  3. bool isAdjacent(NegInfInterval interval)

Parameters

interval PosInfInterval!TP

The interval to check whether its adjecent to this interval.

Examples

assert(!NegInfInterval!Date(Date(2012, 3, 1)).isAdjacent(
            PosInfInterval!Date(Date(1999, 5, 4))));

assert(NegInfInterval!Date(Date(2012, 3, 1)).isAdjacent(
            PosInfInterval!Date(Date(2012, 3, 1))));

Meta