@Test public void testToString() { final OperatingSystemPattern pattern = new OperatingSystemPattern(1, Pattern.compile("[0-9]+"), 1); assertThat(pattern.toString()).isEqualTo("OperatingSystemPattern [id=1, pattern=[0-9]+, position=1]"); }
@Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("OperatingSystemPattern [id="); builder.append(id); builder.append(", pattern="); builder.append(pattern); builder.append(", position="); builder.append(position); builder.append("]"); return builder.toString(); }
OperatingSystemPattern implements Identifiable, OrderedPattern<OperatingSystemPattern>, Serializable { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("OperatingSystemPattern [id="); builder.append(id); builder.append(", pattern="); builder.append(pattern); builder.append(", position="); builder.append(position); builder.append("]"); return builder.toString(); } }
OperatingSystemPattern implements Identifiable, OrderedPattern<OperatingSystemPattern>, Serializable { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("OperatingSystemPattern [id="); builder.append(id); builder.append(", pattern="); builder.append(pattern); builder.append(", position="); builder.append(position); builder.append("]"); return builder.toString(); } OperatingSystemPattern(@Nonnegative final int id, @Nonnull final Pattern pattern, @Nonnegative final int position); }
OperatingSystemPattern implements Identifiable, OrderedPattern<OperatingSystemPattern>, Serializable { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("OperatingSystemPattern [id="); builder.append(id); builder.append(", pattern="); builder.append(pattern); builder.append(", position="); builder.append(position); builder.append("]"); return builder.toString(); } OperatingSystemPattern(@Nonnegative final int id, @Nonnull final Pattern pattern, @Nonnegative final int position); @Override int compareTo(final OperatingSystemPattern other); @Override boolean equals(final Object obj); @Override int getId(); @Override Pattern getPattern(); @Override int getPosition(); @Override int hashCode(); @Override String toString(); }
OperatingSystemPattern implements Identifiable, OrderedPattern<OperatingSystemPattern>, Serializable { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("OperatingSystemPattern [id="); builder.append(id); builder.append(", pattern="); builder.append(pattern); builder.append(", position="); builder.append(position); builder.append("]"); return builder.toString(); } OperatingSystemPattern(@Nonnegative final int id, @Nonnull final Pattern pattern, @Nonnegative final int position); @Override int compareTo(final OperatingSystemPattern other); @Override boolean equals(final Object obj); @Override int getId(); @Override Pattern getPattern(); @Override int getPosition(); @Override int hashCode(); @Override String toString();  }