New page: TBD: Is it even possible? Or is it better to use classical: <source lang="java"> public final class Status { private final boolean empty; private final boolean large; private fi...
New page
[[TBD]]: Is it even possible? Or is it better to use classical:
<source lang="java">
public final class Status {
private final boolean empty;
private final boolean large;
private final boolean asciiOnly;
private Status(boolean empty, boolean large, boolean asciiOnly) {
this.empty = empty;
this.large = large;
this.asciiOnly = asciiOnly;
}
/** @since 1.0 */
public static Status create(boolean empty) {
return new Status(empty, false, false);
}
/** @since 2.0 */
public static Status create(boolean empty, boolean large, boolean asciiOnly) {
return new Status(empty, large, asciiOnly);
}
</source>
<source lang="java">
public final class Status {
private final boolean empty;
private final boolean large;
private final boolean asciiOnly;
private Status(boolean empty, boolean large, boolean asciiOnly) {
this.empty = empty;
this.large = large;
this.asciiOnly = asciiOnly;
}
/** @since 1.0 */
public static Status create(boolean empty) {
return new Status(empty, false, false);
}
/** @since 2.0 */
public static Status create(boolean empty, boolean large, boolean asciiOnly) {
return new Status(empty, large, asciiOnly);
}
</source>