RecordEvolution
From APIDesign
(Difference between revisions)
JaroslavTulach (Talk | contribs)
(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...)
Next diff →
Current revision
TBD: Is it even possible? Or is it better to use classical:
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); }