@Test public void testCreateLinkedListWithTwoEntries() { final Identifier result = Wmes.createLinkedList(factory, Arrays.asList("first", 99).iterator()).asIdentifier(); assertNotNull(result); assertEquals(4, factory.triples.size()); verifyTriple(0, result, "value", "first"); verifyTriple(1, result, "next", null); verifyTriple(2, factory.triples.get(1).value.asIdentifier(), "value", 99); verifyTriple(3, factory.triples.get(1).value.asIdentifier(), "next", "nil"); }
public static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values) { return createLinkedList(context, values, "next", "value"); }
Wmes { public static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values) { return createLinkedList(context, values, "next", "value"); } }
Wmes { public static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values) { return createLinkedList(context, values, "next", "value"); }  }
Wmes { public static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values) { return createLinkedList(context, values, "next", "value"); }  static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values); static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values, String nextName, String valueName); static Iterator<Wme> search(Iterator<Wme> wmes, String id, String attr, String value); static List<Wme> search(Agent agent, String id, String attr, String value); static MatcherBuilder matcher(SymbolFactory syms); static MatcherBuilder matcher(Agent agent); static Predicate<Wme> newMatcher(SymbolFactory syms, Identifier id, Object attr, Object value, int timetag); static Wme find(Iterator<Wme> it, Predicate<Wme> pred); static List<Wme> filter(Iterator<Wme> it, Predicate<Wme> pred); static boolean equal(final Collection<Wme> c1, final Collection<Wme> c2, final boolean ignoreIdentifiers); static boolean equal(Wme w1, Wme w2, boolean ignoreIdentifiers); static boolean equalByValue(Wme w1, Wme w2); }
Wmes { public static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values) { return createLinkedList(context, values, "next", "value"); }  static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values); static Symbol createLinkedList(WmeFactory<?> context, Iterator<?> values, String nextName, String valueName); static Iterator<Wme> search(Iterator<Wme> wmes, String id, String attr, String value); static List<Wme> search(Agent agent, String id, String attr, String value); static MatcherBuilder matcher(SymbolFactory syms); static MatcherBuilder matcher(Agent agent); static Predicate<Wme> newMatcher(SymbolFactory syms, Identifier id, Object attr, Object value, int timetag); static Wme find(Iterator<Wme> it, Predicate<Wme> pred); static List<Wme> filter(Iterator<Wme> it, Predicate<Wme> pred); static boolean equal(final Collection<Wme> c1, final Collection<Wme> c2, final boolean ignoreIdentifiers); static boolean equal(Wme w1, Wme w2, boolean ignoreIdentifiers); static boolean equalByValue(Wme w1, Wme w2);  }