RecordEvolution

From APIDesign

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