code: public static boolean hasInterface(Class<?> cls, Class<?> inter) {
          return Stream.of(cls.getInterfaces()).anyMatch(c -> c.equals(inter));
      }
docs: Determine whether CLS is an implementation of an inteface Type.
  
  @param cls
  @param inter
  @return