case class KeyBounds[+K](minKey: K, maxKey: K) extends Bounds[K] with Product with Serializable
Represents non-empty region of descrete space. Any key which is greater than or equal to minKey and less then or equal to maxKey in each individual dimension is part of the region described by these Bounds.
- minKey
Minimum key of the region, inclusive.
- maxKey
Maximum key of the region, inclusive.
- Alphabetic
- By Inheritance
- KeyBounds
- Bounds
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new KeyBounds(minKey: K, maxKey: K)
- minKey
Minimum key of the region, inclusive.
- maxKey
Maximum key of the region, inclusive.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def combine[B >: K](other: Bounds[B])(implicit b: Boundable[B]): KeyBounds[B]
Combine two regions by creating a region that covers both regions fully
- def contains[B >: K](other: Bounds[B])(implicit b: Boundable[B]): Boolean
Test if other bounds are fully contained by this bounds.
Test if other bounds are fully contained by this bounds. EmptyBounds contain no other bounds but are contained by all non-empty bounds.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap[B](f: (KeyBounds[K]) => Bounds[B]): Bounds[B]
Returns the result of applying f to this Bounds minKey and maxKey if this it is nonempty.
Returns the result of applying f to this Bounds minKey and maxKey if this it is nonempty. The minKey and maxKeys are given as instance of KeyBounds instead of a tuple. If this Bounds is EmptyBounds it is returned unchanged.
- Definition Classes
- Bounds
- Annotations
- @inline()
- def get: KeyBounds[K]
Returns non-empty bounds or throws NoSuchElementException
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOrElse[B >: K](default: => KeyBounds[B]): KeyBounds[B]
Returns non-empty bounds or the default value
Returns non-empty bounds or the default value
- Definition Classes
- Bounds
- def include[B >: K](key: B)(implicit b: Boundable[B]): KeyBounds[B]
Expand bounds to include the key or keep unchanged if it is already included
- def includes[B >: K](key: B)(implicit b: Boundable[B]): Boolean
Test if the key is included in bounds
- def intersect[B >: K](other: Bounds[B])(implicit b: Boundable[B]): Bounds[B]
Returns the intersection, if any, between two bounds
- def intersects[B >: K](other: KeyBounds[B])(implicit b: Boundable[B]): Boolean
Test if two bounds for intersection
Test if two bounds for intersection
- Definition Classes
- Bounds
- def isEmpty: Boolean
Returns true if this is EmptyBounds
Returns true if this is EmptyBounds
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxKey: K
- val minKey: K
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
Returns false if this is EmptyBounds
Returns false if this is EmptyBounds
- Definition Classes
- Bounds
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def rekey[B >: K](sourceLayout: LayoutDefinition, targetLayout: LayoutDefinition)(implicit arg0: SpatialComponent[B]): KeyBounds[B]
- def setSpatialBounds[B >: K](gridBounds: TileBounds)(implicit ev: SpatialComponent[B]): KeyBounds[B]
- def setSpatialBounds[B >: K](other: KeyBounds[SpatialKey])(implicit ev: SpatialComponent[B]): KeyBounds[B]
Updates the spatial region of bounds to match that of the argument, leaving other dimensions, if any, unchanged.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toOption: Option[KeyBounds[K]]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()