@Test public void testGetTopicString() { Topic joe = Topics.getTopic("Joe"); Topic bob = Topics.getTopic("Bob"); assertTrue(!joe.equals(bob)); assertTrue(joe.hashCode() != bob.hashCode()); assertTrue(joe.compareTo(bob) > 0); assertTrue(bob.compareTo(joe) < 0); assertTrue(joe.equals(joe)); assertEquals(0, joe.compareTo(joe)); }
public static Topic getTopic(String name) { return new TopicImpl(new String[] {name}); }
Topics { public static Topic getTopic(String name) { return new TopicImpl(new String[] {name}); } }
Topics { public static Topic getTopic(String name) { return new TopicImpl(new String[] {name}); }  }
Topics { public static Topic getTopic(String name) { return new TopicImpl(new String[] {name}); }  static Topic getSubtopic(Topic topic, String field); static Topic getTopic(String name); static Topic getTopic(String... fields); static Topic parse(String s); static String toString(Topic topic); }
Topics { public static Topic getTopic(String name) { return new TopicImpl(new String[] {name}); }  static Topic getSubtopic(Topic topic, String field); static Topic getTopic(String name); static Topic getTopic(String... fields); static Topic parse(String s); static String toString(Topic topic);  }