@Test(expected=UnsupportedOperationException.class) public void testImmutableOutputException() throws Exception { Set<String> inputs = Sets.newHashSet("A","B","C"); Set<String> outputs = Sets.newHashSet("D","E"); SignatureIO<String> signature = new SignatureIO<String>(inputs, outputs); signature.getOutputs().clear(); }
@Override public Set<E> getOutputs() { return Collections.unmodifiableSet(outputs); }
SignatureIO implements Signature<E>, Serializable { @Override public Set<E> getOutputs() { return Collections.unmodifiableSet(outputs); } }
SignatureIO implements Signature<E>, Serializable { @Override public Set<E> getOutputs() { return Collections.unmodifiableSet(outputs); } SignatureIO(Collection<E> inputs, Collection<E> outputs);  SignatureIO(); }
SignatureIO implements Signature<E>, Serializable { @Override public Set<E> getOutputs() { return Collections.unmodifiableSet(outputs); } SignatureIO(Collection<E> inputs, Collection<E> outputs);  SignatureIO(); @Override Set<E> getInputs(); @Override Set<E> getOutputs(); @Override boolean equals(Object o); @Override int hashCode(); static SignatureIO<E> empty(); }
SignatureIO implements Signature<E>, Serializable { @Override public Set<E> getOutputs() { return Collections.unmodifiableSet(outputs); } SignatureIO(Collection<E> inputs, Collection<E> outputs);  SignatureIO(); @Override Set<E> getInputs(); @Override Set<E> getOutputs(); @Override boolean equals(Object o); @Override int hashCode(); static SignatureIO<E> empty();  }