Skip to content

Commit

Permalink
1.3.0 SimpleElementOperation Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
rotgruengelb committed Mar 28, 2024
1 parent f9ed77a commit 590a8f4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1 +1 @@
version=1.2.0
version=1.3.0
@@ -0,0 +1,29 @@
package net.rotgruengelb.nixienaut.operation;

import net.rotgruengelb.nixienaut.object.IntIdentifiable;
import net.rotgruengelb.nixienaut.object.StringIdentifiable;

public enum SimpleElementOperation implements StringIdentifiable, IntIdentifiable {
ADD(1, "add"),
UPDATE(0, "update"),
REMOVE(-1, "remove");


private final int difference;
private final String stringRepresentation;

SimpleElementOperation(int difference, String stringRepresentation) {
this.difference = difference;
this.stringRepresentation = stringRepresentation;
}

@Override
public int getIntRepresentation() {
return difference;
}

@Override
public String getStringRepresentation() {
return stringRepresentation;
}
}

0 comments on commit 590a8f4

Please sign in to comment.