/** {@inheritDoc} */ @Override public String toHuman() { return prototype.getDescriptor(); }
/** {@inheritDoc} */ @Override public String toHuman() { return prototype.getDescriptor(); }
@Override public String toString() { return prototype.getDescriptor(); }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { Prototype result = internTable.putIfAbsent(desc.getDescriptor(), desc); return result != null ? result : desc; } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { Prototype result = internTable.putIfAbsent(desc.getDescriptor(), desc); return result != null ? result : desc; } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { Prototype result = internTable.putIfAbsent(desc.getDescriptor(), desc); return result != null ? result : desc; } }
@Override protected int compareTo0(Constant other) { return prototype.getDescriptor().compareTo( ((CstMethodType) other).getValue().getDescriptor()); } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { synchronized (internTable) { String descriptor = desc.getDescriptor(); Prototype already = internTable.get(descriptor); if (already != null) { return already; } internTable.put(descriptor, desc); return desc; } } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { synchronized (internTable) { String descriptor = desc.getDescriptor(); Prototype already = internTable.get(descriptor); if (already != null) { return already; } internTable.put(descriptor, desc); return desc; } } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { synchronized (internTable) { String descriptor = desc.getDescriptor(); Prototype already = internTable.get(descriptor); if (already != null) { return already; } internTable.put(descriptor, desc); return desc; } } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { synchronized (internTable) { String descriptor = desc.getDescriptor(); Prototype already = internTable.get(descriptor); if (already != null) { return already; } internTable.put(descriptor, desc); return desc; } } }
/** * Puts the given instance in the intern table if it's not already * there. If a conflicting value is already in the table, then leave it. * Return the interned value. * * @param desc {@code non-null;} instance to make interned * @return {@code non-null;} the actual interned object */ private static Prototype putIntern(Prototype desc) { synchronized (internTable) { String descriptor = desc.getDescriptor(); Prototype already = internTable.get(descriptor); if (already != null) { return already; } internTable.put(descriptor, desc); return desc; } } }