-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teildatensatz ist jetzt von Datensatz abgeleitet
- Loading branch information
Oli B
committed
Apr 22, 2024
1 parent
4a9d398
commit 253da0a
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
* @author [email protected] | ||
* @since 04.10.2009 | ||
*/ | ||
public class Teildatensatz extends Satz { | ||
public class Teildatensatz extends Datensatz { | ||
|
||
private static final Logger LOG = LogManager.getLogger(Teildatensatz.class); | ||
private final Collection<Feld> datenfelder = Config.getInstance().isDebug() ? new TreeSet<>() : new ArrayList<>(); | ||
|
@@ -81,8 +81,8 @@ public Teildatensatz(final SatzTyp satzTyp, final int nr) { | |
* @param satz z.B. 100 | ||
* @param nr Nummer des Teildatensatzes (zwischen 1 und 9) | ||
*/ | ||
public Teildatensatz(final Satz satz, final int nr) { | ||
super(satz, 0); | ||
public Teildatensatz(final Datensatz satz, final int nr) { | ||
super(satz); | ||
initSatznummer(satz.getSatzTyp(), nr); | ||
} | ||
|
||
|
@@ -93,7 +93,7 @@ public Teildatensatz(final Satz satz, final int nr) { | |
* @param other der andere Teildatensatz | ||
*/ | ||
public Teildatensatz(final Teildatensatz other) { | ||
super(other, 0); | ||
super(other); | ||
this.satznummer = other.satznummer; | ||
for (Feld f : other.datenfelder) { | ||
Feld copy = (Feld) f.clone(); | ||
|