Files
fil/packages/java/dev/kreuzberg/RevisionKind.java
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

54 lines
1.5 KiB
Java
Generated

// This file is auto-generated by alef — DO NOT EDIT.
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
// To regenerate: alef generate
// To verify freshness: alef verify --exit-code
// Issues & docs: https://github.com/kreuzberg-dev/alef
package dev.kreuzberg;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Semantic classification of a tracked change.
*/
public enum RevisionKind {
/** Text or content was inserted. */
Insertion("insertion"),
/** Text or content was deleted. */
Deletion("deletion"),
/** Run-level formatting (font, size, colour, …) was changed. */
FormatChange("format_change"),
/** A reviewer comment or annotation. */
Comment("comment");
/** The string value. */
private final String value;
RevisionKind(final String value) {
this.value = value;
}
/** Returns the string value. */
@JsonValue
public String getValue() {
return value;
}
/** Creates an instance from a string value. */
@JsonCreator
public static RevisionKind fromValue(final String value) {
for (RevisionKind e : values()) {
if (e.value.equalsIgnoreCase(value)) {
return e;
}
}
throw new IllegalArgumentException("Unknown value: " + value);
}
/** Returns the wire-format string value (matches JSON serialization). */
@Override
public String toString() {
return value;
}
}