@Test public void testForName() { assertEquals(TransferAction.overwrite.hashCode(), TransferAction.forName(TransferAction.overwrite.name()).hashCode()); }
public static TransferAction forName(final String name) { return registry.get(name); }
TransferAction { public static TransferAction forName(final String name) { return registry.get(name); } }
TransferAction { public static TransferAction forName(final String name) { return registry.get(name); } TransferAction(final String name); }
TransferAction { public static TransferAction forName(final String name) { return registry.get(name); } TransferAction(final String name); static TransferAction forName(final String name); static List<TransferAction> forTransfer(final Transfer.Type t); abstract String getTitle(); abstract String getDescription(); String name(); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); }
TransferAction { public static TransferAction forName(final String name) { return registry.get(name); } TransferAction(final String name); static TransferAction forName(final String name); static List<TransferAction> forTransfer(final Transfer.Type t); abstract String getTitle(); abstract String getDescription(); String name(); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static final TransferAction overwrite; static final TransferAction resume; static final TransferAction rename; static final TransferAction renameexisting; static final TransferAction skip; static final TransferAction trash; static final TransferAction callback; static final TransferAction comparison; static final TransferAction cancel; static final TransferAction download; static final TransferAction upload; static final TransferAction mirror; }