@Test(expectedExceptions = IllegalArgumentException.class) public void fromShortAddress2() { Email.of("a@"); }
public static Email of(final String id, final String domain) { return new Email(id, domain); }
Email implements Comparable<Email>, Serializable { public static Email of(final String id, final String domain) { return new Email(id, domain); } }
Email implements Comparable<Email>, Serializable { public static Email of(final String id, final String domain) { return new Email(id, domain); } private  Email(final String id, final String domain); }
Email implements Comparable<Email>, Serializable { public static Email of(final String id, final String domain) { return new Email(id, domain); } private  Email(final String id, final String domain); String getID(); String getDomain(); String getAddress(); @Override int compareTo(final Email other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static Email of(final String id, final String domain); static Email of(final String address); }
Email implements Comparable<Email>, Serializable { public static Email of(final String id, final String domain) { return new Email(id, domain); } private  Email(final String id, final String domain); String getID(); String getDomain(); String getAddress(); @Override int compareTo(final Email other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static Email of(final String id, final String domain); static Email of(final String address);  }