RecordEvolution

From APIDesign

Revision as of 08:25, 28 September 2020 by JaroslavTulach (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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);
  }
Personal tools
buy