test_class.file: api/src/test/java/net/adamcin/oakpal/api/RuleTest.java
test_class.identifier: RuleTest
test_case.body: @Test
      public void testHashCode() {
          final Rule newAllow = new Rule(Rules.DEFAULT_ALLOW.getType(), Rules.DEFAULT_ALLOW.getPattern());
          assertEquals("hashCode(): DEFAULT_ALLOW should equal new rule with same params as DEFAULT_ALLOW",
                  Rules.DEFAULT_ALLOW.hashCode(), newAllow.hashCode());
          assertNotEquals("hashCode(): DEFAULT_ALLOW should not equal new ALLOW rule with different pattern",
                  Rules.DEFAULT_ALLOW.hashCode(), new Rule(Rules.DEFAULT_ALLOW.getType(), Pattern.compile("foo")).hashCode());
          assertNotEquals("hashCode(): DEFAULT_DENY should not equal new ALLOW rule with same params as DEFAULT_ALLOW",
                  Rules.DEFAULT_DENY.hashCode(), newAllow.hashCode());
          assertNotEquals("hashCode(): DEFAULT_INCLUDE should not equal new ALLOW rule with same params as DEFAULT_ALLOW",
                  Rules.DEFAULT_INCLUDE.hashCode(), newAllow.hashCode());
      }
test_case.class_method_signature: RuleTest.testHashCode()
test_case.full_signature: @Test public void testHashCode()
test_case.identifier: testHashCode
test_case.invocations: getType getPattern assertEquals hashCode hashCode assertNotEquals hashCode hashCode getType compile assertNotEquals hashCode hashCode assertNotEquals hashCode hashCode
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHashCode()
focal_class.declarator: KEYS = new JsonKeys() {
          @Override
          public String type() {
              return "type";
          }
  
          @Override
          public String pattern() {
              return "pattern";
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final JsonKeys KEYS = new JsonKeys() {
          @Override
          public String type() {
              return "type";
          }
  
          @Override
          public String pattern() {
              return "pattern";
          }
      };
focal_class.type: JsonKeys
focal_class.var_name: KEYS
focal_class.declarator: type
focal_class.modifier: private final
focal_class.original_string: private final RuleType type;
focal_class.type: RuleType
focal_class.var_name: type
focal_class.declarator: pattern
focal_class.modifier: private final
focal_class.original_string: private final Pattern pattern;
focal_class.type: Pattern
focal_class.var_name: pattern
focal_class.file: api/src/main/java/net/adamcin/oakpal/api/Rule.java
focal_class.identifier: Rule
focal_class.interfaces: implements JsonObjectConvertible
focal_class.class_method_signature: Rule.keys()
focal_class.full_signature: @NotNull public static JsonKeys keys()
focal_class.identifier: keys
focal_class.modifiers: @NotNull public static
focal_class.parameters: ()
focal_class.return: JsonKeys
focal_class.signature: JsonKeys keys()
focal_class.class_method_signature: Rule.Rule(final RuleType type, final Pattern pattern)
focal_class.full_signature: public  Rule(final RuleType type, final Pattern pattern)
focal_class.identifier: Rule
focal_class.modifiers: public
focal_class.parameters: (final RuleType type, final Pattern pattern)
focal_class.signature:  Rule(final RuleType type, final Pattern pattern)
focal_class.class_method_signature: Rule.getType()
focal_class.full_signature: public RuleType getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RuleType
focal_class.signature: RuleType getType()
focal_class.class_method_signature: Rule.getPattern()
focal_class.full_signature: public Pattern getPattern()
focal_class.identifier: getPattern
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Pattern
focal_class.signature: Pattern getPattern()
focal_class.class_method_signature: Rule.isInclude()
focal_class.full_signature: public boolean isInclude()
focal_class.identifier: isInclude
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isInclude()
focal_class.class_method_signature: Rule.isExclude()
focal_class.full_signature: public boolean isExclude()
focal_class.identifier: isExclude
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isExclude()
focal_class.class_method_signature: Rule.isAllow()
focal_class.full_signature: public boolean isAllow()
focal_class.identifier: isAllow
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAllow()
focal_class.class_method_signature: Rule.isDeny()
focal_class.full_signature: public boolean isDeny()
focal_class.identifier: isDeny
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDeny()
focal_class.class_method_signature: Rule.matches(String value)
focal_class.full_signature: public boolean matches(String value)
focal_class.identifier: matches
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: boolean
focal_class.signature: boolean matches(String value)
focal_class.class_method_signature: Rule.toJson()
focal_class.full_signature: @Override public JsonObject toJson()
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson()
focal_class.class_method_signature: Rule.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Rule.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: Rule.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_method.body: @Override
      public int hashCode() {
          return Objects.hash(type, pattern.pattern());
      }
focal_method.class_method_signature: Rule.hashCode()
focal_method.full_signature: @Override public int hashCode()
focal_method.identifier: hashCode
focal_method.invocations: hash pattern
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int hashCode()