public int size() { return _discharge.getFail() != null ? 2 : 1; }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
Teacher exp = new Coordinator() ((Coordinator)exp).someCoordinatorMethodOrProperty()
public Object get(final int index) { switch(index) { case 0: return _transactionalState.getTxnId(); case 1: return _transactionalState.getOutcome(); } throw new IllegalStateException("Unknown index " + index); }
public Declare newInstance(Object described) { List l = (List) described; Declare o = new Declare(); if(!l.isEmpty()) { o.setGlobalId( (GlobalTxId) l.get( 0 ) ); } return o; }
@Override protected List wrap(Declared val) { return Collections.singletonList(val.getTxnId()); }
@Override protected List wrap(Declare val) { GlobalTxId globalId = val.getGlobalId(); return globalId == null ? Collections.EMPTY_LIST : Collections.singletonList(globalId); }
@Override protected List wrap(Coordinator val) { Symbol[] capabilities = val.getCapabilities(); return capabilities == null || capabilities.length == 0 ? Collections.EMPTY_LIST : Collections.singletonList(capabilities); }
public Object get(final int index) { switch(index) { case 0: return _transactionalState.getTxnId(); case 1: return _transactionalState.getOutcome(); } throw new IllegalStateException("Unknown index " + index); }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public Declare newInstance(Object described) { List l = (List) described; Declare o = new Declare(); if(!l.isEmpty()) { o.setGlobalId( (GlobalTxId) l.get( 0 ) ); } return o; }
public int size() { return _discharge.getFail() != null ? 2 : 1; }
@Override protected List wrap(Declared val) { return Collections.singletonList(val.getTxnId()); }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public Declare newInstance(Object described) { List l = (List) described; Declare o = new Declare(); if(!l.isEmpty()) { o.setGlobalId( (GlobalTxId) l.get( 0 ) ); } return o; }
public int size() { return _discharge.getFail() != null ? 2 : 1; }
public int size() { return _transactionalState.getOutcome() != null ? 2 : 1; }
public int size() { return _discharge.getFail() != null ? 2 : 1; }