Skip to content

Commit

Permalink
Ordinal in Database for sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwehl committed Oct 22, 2017
1 parent f9acf94 commit 94ee567
Showing 1 changed file with 50 additions and 0 deletions.
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;

}


}

0 comments on commit 94ee567

Please sign in to comment.