2023-10-05 23:49:36 +02:00
|
|
|
/*
|
|
|
|
============================================================
|
|
|
|
This is the "Block" file from Author: Philipp Kotte
|
|
|
|
written on: 05 / 10 / 2023 at: 23:43
|
|
|
|
============================================================
|
|
|
|
*/
|
2023-10-10 21:22:33 +02:00
|
|
|
package Domain.Block;
|
2023-10-05 23:49:36 +02:00
|
|
|
|
2023-11-05 20:40:16 +01:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2023-10-05 23:49:36 +02:00
|
|
|
public class Block {
|
2023-11-05 20:40:16 +01:00
|
|
|
private ArrayList<Blockzeile> zeilen;
|
|
|
|
|
|
|
|
public Block(){
|
|
|
|
this.zeilen = new ArrayList<>();
|
|
|
|
}
|
2023-10-05 23:49:36 +02:00
|
|
|
|
2023-11-05 20:40:16 +01:00
|
|
|
public void addZeile(Blockzeile blockzeile) {
|
|
|
|
zeilen.add(blockzeile);
|
2023-10-11 16:56:05 +02:00
|
|
|
}
|
|
|
|
|
2023-11-05 20:40:16 +01:00
|
|
|
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]);
|
2023-10-11 16:56:05 +02:00
|
|
|
}
|
2023-11-05 20:40:16 +01:00
|
|
|
}
|