@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("FailingSecretCraftRecipe"); sb.append("{m_secretRecipe=").append(this.m_secretRecipe); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override public String toString() { final StringBuilder buf = new StringBuilder("{"); for (int i = 0, end = _pos - 1; i < end; i++) { buf.append(_data.get(i)); buf.append(", "); } if (size() > 0) { buf.append(_data.get(_pos - 1)); } buf.append("}"); return buf.toString(); }
@SuppressWarnings("HardCodedStringLiteral") public String toString() { StringBuilder result = new StringBuilder(); result.append('<'); if (myEphemeral) { result.append("ephemeral, "); } for (EqClass set : getNonTrivialEqClasses()) { result.append(set); } if (!myDistinctClasses.isEmpty()) { result.append("\n distincts: "); List<String> distincts = new ArrayList<>(); for (UnorderedPair<EqClass> pair : getDistinctClassPairs()) { distincts.add("{" + pair.first + ", " + pair.second + "}"); } Collections.sort(distincts); result.append(StringUtil.join(distincts, " ")); } if (!myStack.isEmpty()) { result.append("\n stack: ").append(StringUtil.join(myStack, ",")); } if (!myVariableStates.isEmpty()) { result.append("\n vars: "); for (Map.Entry<DfaVariableValue, DfaVariableState> entry : myVariableStates.entrySet()) { result .append("[") .append(entry.getKey()) .append("->") .append(entry.getValue()) .append("] "); } } if (!myUnknownVariables.isEmpty()) { result.append("\n unknowns: ").append(new HashSet<>(myUnknownVariables)); } result.append('>'); return result.toString(); }
@Override public String toString() { final StringBuilder s = new StringBuilder("{"); forEachEntry( new TIntObjectProcedure<int[]>() { @Override public boolean execute(int id, int[] set) { DfaValue value = myFactory.getValue(id); s.append(value + " -> " + Arrays.toString(set) + ", "); return true; } }); s.append("}"); return s.toString(); }
/** {@inheritDoc} */ @Override public String toString() { final StringBuilder buf = new StringBuilder("{"); forEachEntry( new TIntIntProcedure() { private boolean first = true; public boolean execute(int key, int value) { if (first) first = false; else buf.append(", "); buf.append(key); buf.append("="); buf.append(value); return true; } }); buf.append("}"); return buf.toString(); }
/** {@inheritDoc} */ @Override public String toString() { final StringBuilder buf = new StringBuilder("{"); forEachValue( new TShortProcedure() { private boolean first = true; public boolean execute(short value) { if (first) { first = false; } else { buf.append(", "); } buf.append(value); return true; } }); buf.append("}"); return buf.toString(); }
@Override public String toString() { final StringBuilder buf = new StringBuilder("{"); forEachKey( new TByteProcedure() { private boolean first = true; public boolean execute(byte key) { if (first) { first = false; } else { buf.append(", "); } buf.append(key); return true; } }); buf.append("}"); return buf.toString(); }