@Test public void testGetTopicStringArray() { Topic joe = Topics.getTopic("Joe"); Topic joebob = Topics.getTopic("Joe", "Bob"); Topic bobjoe = Topics.getTopic("Bob", "Joe"); assertTrue(!joebob.equals(bobjoe)); assertTrue(joebob.compareTo(bobjoe) > 0); assertTrue(bobjoe.compareTo(joebob) < 0); assertTrue(!joe.equals(joebob)); assertTrue(joe.compareTo(joebob) < 0); assertTrue(joebob.compareTo(joe) > 0); }
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);  }