Class CollectionCoercer<T extends java.util.Collection>

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.reflect.Type,​java.util.function.BiFunction<JsonInput,​PropertySetting,​T>>, java.util.function.Predicate<java.lang.Class<?>>

    public class CollectionCoercer<T extends java.util.Collection>
    extends TypeCoercer<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionCoercer​(java.lang.Class<T> stereotype, org.openqa.selenium.json.JsonTypeCoercer coercer, java.util.stream.Collector<java.lang.Object,​?,​T> collector)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.function.BiFunction<JsonInput,​PropertySetting,​T> apply​(java.lang.reflect.Type type)  
      boolean test​(java.lang.Class<?> aClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • CollectionCoercer

        public CollectionCoercer​(java.lang.Class<T> stereotype,
                                 org.openqa.selenium.json.JsonTypeCoercer coercer,
                                 java.util.stream.Collector<java.lang.Object,​?,​T> collector)
    • Method Detail

      • test

        public boolean test​(java.lang.Class<?> aClass)
        Specified by:
        test in interface java.util.function.Predicate<T extends java.util.Collection>
        Specified by:
        test in class TypeCoercer<T extends java.util.Collection>
      • apply

        public java.util.function.BiFunction<JsonInput,​PropertySetting,​T> apply​(java.lang.reflect.Type type)
        Specified by:
        apply in interface java.util.function.Function<java.lang.reflect.Type,​java.util.function.BiFunction<JsonInput,​PropertySetting,​T extends java.util.Collection>>
        Specified by:
        apply in class TypeCoercer<T extends java.util.Collection>