Int2D

Inheritance: java.lang.Object

public final class Int2D

Gemaakt door lexchou op 5/17/2017. 2-dimensionale int-array wrapper

Constructors

ConstructorBeschrijving
Int2D(int rows, int columns)Construeer een 2D int-array met standaard gegevensallocatie.
Int2D(int rows, int columns, int[] data)Construeer een 2D int-array met opgegeven gegevens

Methoden

MethodeBeschrijving
equals(Object arg0)
get(int r, int c)Haalt het element op op de opgegeven positie
getClass()
getColumns()
getLength(int rank)
getRows()
hashCode()
length()Haalt de totale lengte van deze 2D-array op
notify()
notifyAll()
set(int r, int c, int v)Stelt het element in op de opgegeven positie
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Int2D(int rows, int columns)

public Int2D(int rows, int columns)

Construeer een 2D int-array met standaard gegevensallocatie.

Parameters:

ParameterTypeBeschrijving
rijenintAantal rijen van de 2D-array
kolommenintAantal kolommen van de 2D-array

Int2D(int rows, int columns, int[] data)

public Int2D(int rows, int columns, int[] data)

Construeer een 2D int-array met opgegeven gegevens

Parameters:

ParameterTypeBeschrijving
rijenintAantal rijen van de 2D-array
kolommenintAantal kolommen van de 2D-array
gegevensint[]Array om te omhullen, Float2D zal deze array intern gebruiken.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeBeschrijving
arg0java.lang.Object

Returns: boolean

get(int r, int c)

public int get(int r, int c)

Haalt het element op op de opgegeven positie

Parameters:

ParameterTypeBeschrijving
rintRij
cintKolom

Returns: int - de waarde op de opgegeven positie

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColumns()

public int getColumns()

Returns: int

getLength(int rank)

public int getLength(int rank)

Parameters:

ParameterTypeBeschrijving
rangint

Returns: int

getRows()

public int getRows()

Returns: int

hashCode()

public native int hashCode()

Returns: int

length()

public int length()

Haalt de totale lengte van deze 2D-array op

Returns: int - het totale aantal floats in deze 2D-array.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

set(int r, int c, int v)

public void set(int r, int c, int v)

Stelt het element in op de opgegeven positie

Parameters:

ParameterTypeBeschrijving
rintRij
cintKolom
vintWaarde

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeBeschrijving
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeBeschrijving
arg0long
arg1int