Class FactoryUtil


  • public class FactoryUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FactoryUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <MATERIAL,​PRODUCT>
      java.util.Optional<PRODUCT>
      produce​(java.util.List<? extends Factory<? super MATERIAL,​PRODUCT>> factories, MATERIAL material)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FactoryUtil

        public FactoryUtil()
    • Method Detail

      • produce

        public static <MATERIAL,​PRODUCT> java.util.Optional<PRODUCT> produce​(java.util.List<? extends Factory<? super MATERIAL,​PRODUCT>> factories,
                                                                                   MATERIAL material)