@Test(expected=IllegalArgumentException.class) public void keyIsRefusedIfItBelongsToDifferentSchema() { Tuple person = personSchema.makeWith("Dominic", 41, addressSchema.makeWith(asList("23 Acacia Avenue", "Sunderland"), "VB6 5UX")); person.get(postcode); }
@SuppressWarnings("unchecked") T get(Object[] values) { return (T) values[index]; }
TupleKey { @SuppressWarnings("unchecked") T get(Object[] values) { return (T) values[index]; } }
TupleKey { @SuppressWarnings("unchecked") T get(Object[] values) { return (T) values[index]; } TupleKey(TupleSchema schema, String name, int index); }
TupleKey { @SuppressWarnings("unchecked") T get(Object[] values) { return (T) values[index]; } TupleKey(TupleSchema schema, String name, int index); TupleKeyValue of(T value); String getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
TupleKey { @SuppressWarnings("unchecked") T get(Object[] values) { return (T) values[index]; } TupleKey(TupleSchema schema, String name, int index); TupleKeyValue of(T value); String getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }