@Test public void deInternationalize() throws Exception { assertEquals(GuidedDecisionTable52.HitPolicy.RULE_ORDER, HitPolicyInternationalizer.deInternationalize("RuleOrderHitPolicy")); assertEquals(GuidedDecisionTable52.HitPolicy.RESOLVED_HIT, HitPolicyInternationalizer.deInternationalize("ResolvedHitPolicy")); assertEquals(GuidedDecisionTable52.HitPolicy.FIRST_HIT, HitPolicyInternationalizer.deInternationalize("FirstHitPolicy")); assertEquals(GuidedDecisionTable52.HitPolicy.UNIQUE_HIT, HitPolicyInternationalizer.deInternationalize("UniqueHitPolicy")); assertEquals(GuidedDecisionTable52.HitPolicy.NONE, HitPolicyInternationalizer.deInternationalize("NoneHitPolicy")); }
public static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization) { PortablePreconditions.checkNotNull("internalization", internalization); for (final GuidedDecisionTable52.HitPolicy hitPolicy : GuidedDecisionTable52.HitPolicy.values()) { if (internalization.equals(internationalize(hitPolicy))) { return hitPolicy; } } throw new IllegalArgumentException("Could not find hit policy with internalization: " + internalization); }
HitPolicyInternationalizer { public static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization) { PortablePreconditions.checkNotNull("internalization", internalization); for (final GuidedDecisionTable52.HitPolicy hitPolicy : GuidedDecisionTable52.HitPolicy.values()) { if (internalization.equals(internationalize(hitPolicy))) { return hitPolicy; } } throw new IllegalArgumentException("Could not find hit policy with internalization: " + internalization); } }
HitPolicyInternationalizer { public static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization) { PortablePreconditions.checkNotNull("internalization", internalization); for (final GuidedDecisionTable52.HitPolicy hitPolicy : GuidedDecisionTable52.HitPolicy.values()) { if (internalization.equals(internationalize(hitPolicy))) { return hitPolicy; } } throw new IllegalArgumentException("Could not find hit policy with internalization: " + internalization); }  }
HitPolicyInternationalizer { public static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization) { PortablePreconditions.checkNotNull("internalization", internalization); for (final GuidedDecisionTable52.HitPolicy hitPolicy : GuidedDecisionTable52.HitPolicy.values()) { if (internalization.equals(internationalize(hitPolicy))) { return hitPolicy; } } throw new IllegalArgumentException("Could not find hit policy with internalization: " + internalization); }  static String internationalize(final GuidedDecisionTable52.HitPolicy hitPolicy); static String internationalizeDescription(final GuidedDecisionTable52.HitPolicy hitPolicy); static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization); }
HitPolicyInternationalizer { public static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization) { PortablePreconditions.checkNotNull("internalization", internalization); for (final GuidedDecisionTable52.HitPolicy hitPolicy : GuidedDecisionTable52.HitPolicy.values()) { if (internalization.equals(internationalize(hitPolicy))) { return hitPolicy; } } throw new IllegalArgumentException("Could not find hit policy with internalization: " + internalization); }  static String internationalize(final GuidedDecisionTable52.HitPolicy hitPolicy); static String internationalizeDescription(final GuidedDecisionTable52.HitPolicy hitPolicy); static GuidedDecisionTable52.HitPolicy deInternationalize(final String internalization);  }