Class Matrix2<T>
- java.lang.Object
-
- de.extio.spacecraft.shared.model.world.Matrix2<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocate(int x, int y)
void
clear()
Clears but keeps internal state allocatedvoid
close()
Clears and frees internal stateboolean
contains(int x, int y)
boolean
contains(HasPosition2 hasPosition)
void
forEach(BiConsumer<CoordI2,T> consumer)
void
forEach(Consumer<? super T> action)
T
get(int x, int y)
T
get(HasPosition2 hasPosition)
CoordI2
getDimension()
Iterator<T>
iterator()
void
put(int x, int y, T obj)
void
put(HasPosition2 hasPosition, T obj)
void
remove(int x, int y)
void
remove(HasPosition2 hasPosition)
void
removeAll()
void
rotate(Edge2 direction)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
spliterator
-
-
-
-
Method Detail
-
close
public void close()
Clears and frees internal state
-
clear
public void clear()
Clears but keeps internal state allocated
-
put
public void put(HasPosition2 hasPosition, T obj)
-
put
public void put(int x, int y, T obj)
-
remove
public void remove(HasPosition2 hasPosition)
-
remove
public void remove(int x, int y)
-
removeAll
public void removeAll()
-
get
public T get(HasPosition2 hasPosition)
-
get
public T get(int x, int y)
-
contains
public boolean contains(HasPosition2 hasPosition)
-
contains
public boolean contains(int x, int y)
-
allocate
public void allocate(int x, int y)
-
rotate
public void rotate(Edge2 direction)
-
forEach
public void forEach(BiConsumer<CoordI2,T> consumer)
-
getDimension
public CoordI2 getDimension()
-
-