tech.jhipster.lite.module.domain.javaproperties.PropertyKey Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain.javaproperties;
import tech.jhipster.lite.shared.error.domain.Assert;
public record PropertyKey(String key) implements Comparable {
public PropertyKey {
Assert.notBlank("key", key);
}
public String get() {
return key();
}
@Override
public int compareTo(PropertyKey other) {
return key.compareTo(other.key);
}
}