Class FactoryAttribute<R extends FactoryBase<?,​R>,​L,​F extends FactoryBase<L,​R>>

    • Constructor Detail

      • FactoryAttribute

        public FactoryAttribute()
      • FactoryAttribute

        public FactoryAttribute​(java.util.function.Consumer<FactoryAttribute<R,​L,​F>> setup)
        diamond operator doesn't work chained expression inference (Section D of JSR 335)

        e.g.:
        FactoryAttribute<LiveObject,Factory> attribute = new FactoryAttribute<LiveObject,Factory>().nullable();
        Diamond Operator doesn't work:
        FactoryAttribute<LiveObject,Factory> attribute = new FactoryAttribute<>().nullable();
        Workaround:
        FactoryAttribute<LiveObject,Factory> attribute = new FactoryAttribute<>(FactoryAttribute::nullable);
        Parameters:
        setup - setup function