-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...a.matrosdms.domain/src/net/schwehla/matrosdms/domain/core/InfoBaseElementWithOrdinal.java
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package net.schwehla.matrosdms.domain.core; | ||
|
||
import java.util.Objects; | ||
|
||
import net.schwehla.matrosdms.domain.util.Identifier; | ||
|
||
public class InfoBaseElementWithOrdinal extends InfoBaseElement { | ||
|
||
int oridinal; | ||
|
||
public int getOridinal() { | ||
return oridinal; | ||
} | ||
|
||
|
||
public void setOridinal(int oridinal) { | ||
this.oridinal = oridinal; | ||
} | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
protected InfoBaseElementWithOrdinal() { | ||
|
||
} | ||
|
||
|
||
public InfoBaseElementWithOrdinal(Identifier identifier, String name) { | ||
super(identifier,name); | ||
} | ||
|
||
public InfoBaseElementWithOrdinal(Identifier identifier, InfoBaseElement element) { | ||
super(identifier,element); | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
public void applyValues(InfoBaseElementWithOrdinal other) { | ||
|
||
Objects.requireNonNull(other, "Called with null argument"); | ||
super.applyValues(other); | ||
this.oridinal = other.oridinal; | ||
|
||
} | ||
|
||
|
||
} |