The OpenD Programming Language

PosInfInterval.isAdjacent

Whether the given interval is adjacent to this interval.

Always returns false because two intervals going to positive infinity can never be adjacent to one another.

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

Parameters

interval PosInfInterval

The interval to check whether its adjecent to this interval.

Examples

assert(!PosInfInterval!Date(Date(1996, 1, 2)).isAdjacent(
            PosInfInterval!Date(Date(1990, 1, 7))));

assert(!PosInfInterval!Date(Date(1996, 1, 2)).isAdjacent(
            PosInfInterval!Date(Date(1996, 1, 2))));

Meta