@Test @SuppressWarnings("checked") public void standardDecisionIsCreated() { Decision<String, Boolean> decision2 = StandardDecision.create(String.class, Boolean.class); Decision decision3 = StandardDecision.create(); Assert.assertNotNull(decision2); Assert.assertNotNull(decision3); }
public static <T, U> StandardDecision<T, U> create(Class<T> factType, Class<U> resultType) { return new StandardDecision<T, U>(factType, resultType); }
StandardDecision implements Decision<T, U> { public static <T, U> StandardDecision<T, U> create(Class<T> factType, Class<U> resultType) { return new StandardDecision<T, U>(factType, resultType); } }
StandardDecision implements Decision<T, U> { public static <T, U> StandardDecision<T, U> create(Class<T> factType, Class<U> resultType) { return new StandardDecision<T, U>(factType, resultType); } StandardDecision(Class<T> factClazz, Class<U> resultClazz); }
StandardDecision implements Decision<T, U> { public static <T, U> StandardDecision<T, U> create(Class<T> factType, Class<U> resultType) { return new StandardDecision<T, U>(factType, resultType); } StandardDecision(Class<T> factClazz, Class<U> resultClazz); static StandardDecision<T, U> create(Class<T> factType, Class<U> resultType); static StandardDecision<Object, Object> create(); @Override @SuppressWarnings("unchecked") void run(Object... args); @Override Decision<T, U> given(String name, T value); @Override Decision<T, U> given(Fact<T>... facts); @Override Decision<T, U> given(List<Fact<T>> facts); @Override Decision<T, U> given(FactMap<T> facts); @Override Decision<T, U> givenUnTyped(FactMap facts); @Override FactMap getFactMap(); @Override Decision<T, U> when(Predicate<FactMap<T>> test); @Override Decision<T, U> then(BiConsumer<FactMap<T>, Result<U>> action); @Override Decision<T, U> then(Consumer<FactMap<T>> action); @Override Decision<T, U> stop(); @Override @SuppressWarnings("unchecked") Decision<T, U> using(String... factNames); @Override void setNextRule(Rule<T> rule); @Override U getResult(); @Override void setResult(Result<U> result); @Override Predicate<FactMap<T>> getWhen(); @Override List<Object> getThen(); }
StandardDecision implements Decision<T, U> { public static <T, U> StandardDecision<T, U> create(Class<T> factType, Class<U> resultType) { return new StandardDecision<T, U>(factType, resultType); } StandardDecision(Class<T> factClazz, Class<U> resultClazz); static StandardDecision<T, U> create(Class<T> factType, Class<U> resultType); static StandardDecision<Object, Object> create(); @Override @SuppressWarnings("unchecked") void run(Object... args); @Override Decision<T, U> given(String name, T value); @Override Decision<T, U> given(Fact<T>... facts); @Override Decision<T, U> given(List<Fact<T>> facts); @Override Decision<T, U> given(FactMap<T> facts); @Override Decision<T, U> givenUnTyped(FactMap facts); @Override FactMap getFactMap(); @Override Decision<T, U> when(Predicate<FactMap<T>> test); @Override Decision<T, U> then(BiConsumer<FactMap<T>, Result<U>> action); @Override Decision<T, U> then(Consumer<FactMap<T>> action); @Override Decision<T, U> stop(); @Override @SuppressWarnings("unchecked") Decision<T, U> using(String... factNames); @Override void setNextRule(Rule<T> rule); @Override U getResult(); @Override void setResult(Result<U> result); @Override Predicate<FactMap<T>> getWhen(); @Override List<Object> getThen();  }