mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
26 lines
426 B
Java
26 lines
426 B
Java
package p;
|
|
|
|
public final class ImmutablePojo {
|
|
|
|
private final String value;
|
|
|
|
private final long x;
|
|
|
|
public ImmutablePojo(String value, int x) {
|
|
this.value = value;
|
|
this.x = x;
|
|
}
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public long getX() {
|
|
return x;
|
|
}
|
|
|
|
public String or(String defaultValue) {
|
|
return value != null ? value : defaultValue;
|
|
}
|
|
|
|
} |