test_class.declarator: mobileTerminatingCache
test_class.modifier: private static
test_class.original_string: private static IndexedCollection<MobileTerminating> mobileTerminatingCache;
test_class.type: IndexedCollection<MobileTerminating>
test_class.var_name: mobileTerminatingCache
test_class.declarator: mobileTerminatingCacheNoIndex
test_class.modifier: private static
test_class.original_string: private static IndexedCollection<MobileTerminating> mobileTerminatingCacheNoIndex;
test_class.type: IndexedCollection<MobileTerminating>
test_class.var_name: mobileTerminatingCacheNoIndex
test_class.file: code/src/test/java/com/googlecode/cqengine/query/comparative/LongestPrefixTest.java
test_class.identifier: LongestPrefixTest
test_case.body: @Test
      public void testLongestPrefix() {
          Attribute<String, String> stringIdentity = new SelfAttribute<String>(String.class, "identity");
          assertTrue(LongestPrefix.countPrefixChars( "35387123456", "35387") > 0);
          assertEquals(5, LongestPrefix.countPrefixChars( "35387123456", "35387"));
  
          assertTrue(LongestPrefix.countPrefixChars("35387", "35387") > 0);
          assertEquals(5, LongestPrefix.countPrefixChars("35387", "35387"));
  
          assertFalse(LongestPrefix.countPrefixChars("35386123456", "35387") > 0);
          assertEquals(0, LongestPrefix.countPrefixChars("35386123456", "35387"));
  
          assertFalse(LongestPrefix.countPrefixChars("35386123456", "35387") > 0);
          assertEquals(0, LongestPrefix.countPrefixChars("35386123456", "35387"));
  
          assertFalse(LongestPrefix.countPrefixChars("3538", "35387") > 0);
          assertEquals(0, LongestPrefix.countPrefixChars("3538", "35387"));
      }
test_case.class_method_signature: LongestPrefixTest.testLongestPrefix()
test_case.full_signature: @Test public void testLongestPrefix()
test_case.identifier: testLongestPrefix
test_case.invocations: assertTrue countPrefixChars assertEquals countPrefixChars assertTrue countPrefixChars assertEquals countPrefixChars assertFalse countPrefixChars assertEquals countPrefixChars assertFalse countPrefixChars assertEquals countPrefixChars assertFalse countPrefixChars assertEquals countPrefixChars
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLongestPrefix()
focal_class.declarator: value
focal_class.modifier: private final
focal_class.original_string: private final A value;
focal_class.type: A
focal_class.var_name: value
focal_class.file: code/src/main/java/com/googlecode/cqengine/query/comparative/LongestPrefix.java
focal_class.identifier: LongestPrefix
focal_class.class_method_signature: LongestPrefix.LongestPrefix(Attribute<O, A> attribute, A value)
focal_class.full_signature: public  LongestPrefix(Attribute<O, A> attribute, A value)
focal_class.identifier: LongestPrefix
focal_class.modifiers: public
focal_class.parameters: (Attribute<O, A> attribute, A value)
focal_class.signature:  LongestPrefix(Attribute<O, A> attribute, A value)
focal_class.class_method_signature: LongestPrefix.getValue()
focal_class.full_signature: public A getValue()
focal_class.identifier: getValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: A
focal_class.signature: A getValue()
focal_class.class_method_signature: LongestPrefix.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: LongestPrefix.calcHashCode()
focal_class.full_signature: @Override protected int calcHashCode()
focal_class.identifier: calcHashCode
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int calcHashCode()
focal_class.class_method_signature: LongestPrefix.getMatchesForSimpleAttribute(SimpleAttribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.full_signature: @Override public Iterable<O> getMatchesForSimpleAttribute(SimpleAttribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.identifier: getMatchesForSimpleAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (SimpleAttribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.return: Iterable<O>
focal_class.signature: Iterable<O> getMatchesForSimpleAttribute(SimpleAttribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.class_method_signature: LongestPrefix.getMatchesForNonSimpleAttribute(Attribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.full_signature: @Override public Iterable<O> getMatchesForNonSimpleAttribute(Attribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.identifier: getMatchesForNonSimpleAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (Attribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.return: Iterable<O>
focal_class.signature: Iterable<O> getMatchesForNonSimpleAttribute(Attribute<O, A> attribute, ObjectSet<O> objectsInCollection, QueryOptions queryOptions)
focal_class.class_method_signature: LongestPrefix.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: LongestPrefix.countPrefixChars(CharSequence mainSequence, CharSequence candidatePrefix)
focal_class.full_signature: static int countPrefixChars(CharSequence mainSequence, CharSequence candidatePrefix)
focal_class.identifier: countPrefixChars
focal_class.modifiers: static
focal_class.parameters: (CharSequence mainSequence, CharSequence candidatePrefix)
focal_class.return: int
focal_class.signature: int countPrefixChars(CharSequence mainSequence, CharSequence candidatePrefix)
focal_class.superclass: extends SimpleComparativeQuery<O, A>
focal_method.body: public LongestPrefix(Attribute<O, A> attribute, A value) {
          super(attribute);
          this.value = checkQueryValueNotNull(value);
      }
focal_method.class_method_signature: LongestPrefix.LongestPrefix(Attribute<O, A> attribute, A value)
focal_method.full_signature: public  LongestPrefix(Attribute<O, A> attribute, A value)
focal_method.identifier: LongestPrefix
focal_method.modifiers: public
focal_method.parameters: (Attribute<O, A> attribute, A value)
focal_method.signature:  LongestPrefix(Attribute<O, A> attribute, A value)