The OpenD Programming Language

NegInfInterval.isAdjacent

Whether the given interval is adjacent to this interval.

Always returns false because two intervals beginning at negative infinity can never be adjacent to one another.

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

Parameters

interval NegInfInterval

The interval to check whether its adjecent to this interval.

Examples

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

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

Meta