@Test public void standardRuleIsCreated() { Rule<String> rule1 = new StandardRule<>(String.class); Rule<String> rule2 = StandardRule.create(String.class); Rule rule3 = StandardRule.create(); Assert.assertNotNull(rule1); Assert.assertNotNull(rule2); Assert.assertNotNull(rule3); }
public static <T> StandardRule<T> create(Class<T> factType) { return new StandardRule<>(factType); }
StandardRule implements Rule<T> { public static <T> StandardRule<T> create(Class<T> factType) { return new StandardRule<>(factType); } }
StandardRule implements Rule<T> { public static <T> StandardRule<T> create(Class<T> factType) { return new StandardRule<>(factType); } protected  StandardRule();  StandardRule(Class<T> clazz); }
StandardRule implements Rule<T> { public static <T> StandardRule<T> create(Class<T> factType) { return new StandardRule<>(factType); } protected  StandardRule();  StandardRule(Class<T> clazz); static StandardRule<T> create(Class<T> factType); static StandardRule<Object> create(); @Override @SuppressWarnings("unchecked") void run(Object... otherArgs); @Override @SuppressWarnings("unchecked") Rule<T> given(String name, T value); @Override @SuppressWarnings("unchecked") Rule<T> given(Fact<T>... facts); @SuppressWarnings("unchecked") @Override Rule<T> given(List<Fact<T>> facts); @Override Rule<T> given(FactMap<T> facts); @Override Rule<T> givenUnTyped(FactMap facts); @Override FactMap getFactMap(); @Override Rule<T> when(Predicate<FactMap<T>> test); @Override @SuppressWarnings("unchecked") Rule<T> then(Consumer<FactMap<T>> action); @Override Rule<T> stop(); @Override @SuppressWarnings("unchecked") StandardRule<T> using(String... factNames); @Override void setNextRule(Rule<T> rule); @Override Predicate<FactMap<T>> getWhen(); @Override List<Object> getThen(); }
StandardRule implements Rule<T> { public static <T> StandardRule<T> create(Class<T> factType) { return new StandardRule<>(factType); } protected  StandardRule();  StandardRule(Class<T> clazz); static StandardRule<T> create(Class<T> factType); static StandardRule<Object> create(); @Override @SuppressWarnings("unchecked") void run(Object... otherArgs); @Override @SuppressWarnings("unchecked") Rule<T> given(String name, T value); @Override @SuppressWarnings("unchecked") Rule<T> given(Fact<T>... facts); @SuppressWarnings("unchecked") @Override Rule<T> given(List<Fact<T>> facts); @Override Rule<T> given(FactMap<T> facts); @Override Rule<T> givenUnTyped(FactMap facts); @Override FactMap getFactMap(); @Override Rule<T> when(Predicate<FactMap<T>> test); @Override @SuppressWarnings("unchecked") Rule<T> then(Consumer<FactMap<T>> action); @Override Rule<T> stop(); @Override @SuppressWarnings("unchecked") StandardRule<T> using(String... factNames); @Override void setNextRule(Rule<T> rule); @Override Predicate<FactMap<T>> getWhen(); @Override List<Object> getThen();  }