ObservableIntegerArray

object ObservableIntegerArray extends ObservableArrayCompanionBase[Int, ObservableIntegerArray, ObservableIntegerArray]
Companion
class
class ObservableArrayCompanionBase[Int, ObservableIntegerArray, ObservableIntegerArray]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def apply(v: Int*): ObservableIntegerArray

Create new ObservableArray from a vararg list.

Create new ObservableArray from a vararg list.

Definition Classes
ObservableArrayCompanionBase
def range(start: Int, end: Int, step: Int): ObservableIntegerArray

Returns an array containing equally spaced values in some integer interval.

Returns an array containing equally spaced values in some integer interval.

Value Params
end

End value of the array, exclusive (that is, first value '''not''' included in array). If start exceeds end (>= end if step is positive or <= end if step is negative), then an empty array will result.

start

Start value of the array.

step

Increment value of the array. This value can be negative, but not zero. If omitted, this value defaults to 1.

Returns

Observable array with values: start, start + step, start + 2 * step, ..., up to, but not including, end.

Throws
IllegalArgumentException

if step is 0.

Inherited methods

def apply(a: Array[Int]): ObservableIntegerArray

Create new ObservableArray from an existing array.

Create new ObservableArray from an existing array.

Value Params
a

Array to be converted..

Returns

New ObservableArray storing a.

Inherited from
ObservableArrayCompanionBase

Return an empty ObservableArray

Return an empty ObservableArray

Returns

New empty ObservableArray

Inherited from
ObservableArrayCompanionBase
def fill(n: Int)(elem: => Int): ObservableIntegerArray

Returns an observable array containing the results of some element computation.

Returns an observable array containing the results of some element computation.

Note that elem is computed n times in total; it is not simply calculated once and reused.

Value Params
elem

Computation to be calculated for each element.

n

Size of the new array. If this value is less than 1, an empty array is returned (matching the behavior of Scala's Array[T].fill function).

Returns

Observable array of size n, with each element containing the result of computation elem.

Inherited from
ObservableArrayCompanionBase
def iterate(start: Int, n: Int)(f: Int => Int): ObservableIntegerArray

Return an array returning repeated applications of a function to a start value.

Return an array returning repeated applications of a function to a start value.

Value Params
f

Function to be repeatedly applied to previous element's value.

n

Size of the new array. If this value is less than 1, an empty array is returned (matching the behavior of Scala's Array[T].iterate function).

start

Start value of the array.

Returns

Array containing elements start, f(start), f(f(start)), ....

Inherited from
ObservableArrayCompanionBase

Create an observable array with given dimension.

Create an observable array with given dimension.

Value Params
n

Size of the new array. This value cannot be negative.

Returns

An observable array with the specified dimension and zeroed elements.

Throws
NegativeArraySizeException

if n is negative.

Inherited from
ObservableArrayCompanionBase
def tabulate(n: Int)(f: Int => Int): ObservableIntegerArray

Returns an array containing the results of some element computation that takes the element index as an argument.

Returns an array containing the results of some element computation that takes the element index as an argument.

Value Params
f

Function to be used to initialize element whose index is passed as an argument.

n

Size of the new array. If this value is less than 1, an empty array is returned (matching the behavior of Scala's Array[T].tabulate function).

Returns

Observable array of size n, with each element initialized by f.

Inherited from
ObservableArrayCompanionBase

Implicits

Inherited implicits

implicit def sfxObservableArray2jfxObservableArray(oa: ObservableIntegerArray): ObservableIntegerArray

Extract a JavaFX ObservableArray from a ScalaFX ObservableArray.

Extract a JavaFX ObservableArray from a ScalaFX ObservableArray.

Value Params
oa

ScalaFX ObservableArray.

Returns

JavaFX ObservableArray inside parameter.

Inherited from
ObservableArrayCompanionBase