test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/spi/order/OrderedSPIRegistryTest.java
test_class.identifier: OrderedSPIRegistryTest
test_case.body: @Test
      public void assertGetRegisteredServices() {
          Collection<FixtureCustomInterface> collection = new LinkedList<>();
          collection.add(new FixtureCustomInterfaceImpl());
          Map<FixtureCustomInterface, OrderedSPIFixture> actual = OrderedSPIRegistry.getRegisteredServices(collection, OrderedSPIFixture.class);
          assertThat(actual.size(), is(1));
      }
test_case.class_method_signature: OrderedSPIRegistryTest.assertGetRegisteredServices()
test_case.full_signature: @Test public void assertGetRegisteredServices()
test_case.identifier: assertGetRegisteredServices
test_case.invocations: add getRegisteredServices assertThat size is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetRegisteredServices()
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/spi/order/OrderedSPIRegistry.java
focal_class.identifier: OrderedSPIRegistry
focal_class.class_method_signature: OrderedSPIRegistry.getRegisteredServicesByClass(final Collection<Class<?>> types, final Class<T> orderedSPIClass)
focal_class.full_signature: public static Map<Class<?>, T> getRegisteredServicesByClass(final Collection<Class<?>> types, final Class<T> orderedSPIClass)
focal_class.identifier: getRegisteredServicesByClass
focal_class.modifiers: public static
focal_class.parameters: (final Collection<Class<?>> types, final Class<T> orderedSPIClass)
focal_class.return: Map<Class<?>, T>
focal_class.signature: Map<Class<?>, T> getRegisteredServicesByClass(final Collection<Class<?>> types, final Class<T> orderedSPIClass)
focal_class.class_method_signature: OrderedSPIRegistry.getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass)
focal_class.full_signature: public static Map<K, V> getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass)
focal_class.identifier: getRegisteredServices
focal_class.modifiers: public static
focal_class.parameters: (final Collection<K> types, final Class<V> orderedSPIClass)
focal_class.return: Map<K, V>
focal_class.signature: Map<K, V> getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass)
focal_class.class_method_signature: OrderedSPIRegistry.getRegisteredServices(final Class<T> orderedSPIClass)
focal_class.full_signature: private static Collection<T> getRegisteredServices(final Class<T> orderedSPIClass)
focal_class.identifier: getRegisteredServices
focal_class.modifiers: private static
focal_class.parameters: (final Class<T> orderedSPIClass)
focal_class.return: Collection<T>
focal_class.signature: Collection<T> getRegisteredServices(final Class<T> orderedSPIClass)
focal_method.body: public static <K, V extends OrderedSPI<?>> Map<K, V> getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass) {
          Collection<V> registeredServices = getRegisteredServices(orderedSPIClass);
          Map<K, V> result = new LinkedHashMap<>(registeredServices.size(), 1);
          for (V each : registeredServices) {
              types.stream().filter(type -> each.getTypeClass() == type.getClass()).forEach(type -> result.put(type, each));
          }
          return result;
      }
focal_method.class_method_signature: OrderedSPIRegistry.getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass)
focal_method.full_signature: public static Map<K, V> getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass)
focal_method.identifier: getRegisteredServices
focal_method.invocations: getRegisteredServices size forEach filter stream getTypeClass getClass put
focal_method.modifiers: public static
focal_method.parameters: (final Collection<K> types, final Class<V> orderedSPIClass)
focal_method.return: Map<K, V>
focal_method.signature: Map<K, V> getRegisteredServices(final Collection<K> types, final Class<V> orderedSPIClass)