29 lines
750 B
Java
29 lines
750 B
Java
/*
|
|
============================================================
|
|
This is the "Block" file from Author: Philipp Kotte
|
|
written on: 05 / 10 / 2023 at: 23:43
|
|
============================================================
|
|
*/
|
|
package Domain.Block;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
public class Block {
|
|
private ArrayList<Blockzeile> zeilen;
|
|
|
|
public Block(){
|
|
this.zeilen = new ArrayList<>();
|
|
}
|
|
|
|
public void addZeile(Blockzeile blockzeile) {
|
|
zeilen.add(blockzeile);
|
|
}
|
|
|
|
public Blockzeile[] getDaten(){
|
|
if(zeilen.isEmpty()){
|
|
System.out.println("Die Liste der Blockzeilen ist Leer. ");
|
|
return zeilen.toArray(new Blockzeile[0]);
|
|
}
|
|
return zeilen.toArray(new Blockzeile[0]);
|
|
}
|
|
} |