RecordEvolution

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(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...)
Current revision (08:25, 28 September 2020) (edit) (undo)
(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...)
 

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