⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiringidfactory.java

📁 pastry的java实现的2.0b版
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     *     * @param t DESCRIBE THE PARAMETER     */    public void putAll(Map t) {      throw new UnsupportedOperationException("putAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param key DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public Object remove(Object key) {      return map.remove(RingId.build(ringId, (Id) key));    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public int size() {      return map.size();    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public Collection values() {      throw new UnsupportedOperationException("values not supported!");    }  }  /**   * DESCRIBE THE CLASS   *   * @version $Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $   * @author jeffh   */  protected class MultiringEntrySet implements Set {    /**     * DESCRIBE THE FIELD     */    protected Set set;    /**     * Constructor for MultiringEntrySet.     *     * @param set DESCRIBE THE PARAMETER     */    public MultiringEntrySet(Set set) {      this.set = set;    }    /**     * Gets the Empty attribute of the MultiringEntrySet object     *     * @return The Empty value     */    public boolean isEmpty() {      throw new UnsupportedOperationException("isEmpty not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean add(Object o) {      throw new UnsupportedOperationException("add not supported!");    }    /**     * Adds a feature to the All attribute of the MultiringEntrySet object     *     * @param c The feature to be added to the All attribute     * @return DESCRIBE THE RETURN VALUE     */    public boolean addAll(Collection c) {      throw new UnsupportedOperationException("addAll not supported!");    }    /**     * DESCRIBE THE METHOD     */    public void clear() {      throw new UnsupportedOperationException("clear not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean contains(Object o) {      throw new UnsupportedOperationException("contains not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param c DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean containsAll(Collection c) {      throw new UnsupportedOperationException("containsAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean equals(Object o) {      throw new UnsupportedOperationException("equals not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public int hashCode() {      throw new UnsupportedOperationException("hashCode not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public Iterator iterator() {      return        new Iterator() {          protected Iterator i = set.iterator();          public boolean hasNext() {            return i.hasNext();          }          public Object next() {            return new MultiringMapEntry((Map.Entry) i.next());          }          public void remove() {            i.remove();          }        };    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean remove(Object o) {      throw new UnsupportedOperationException("remove not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param c DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean removeAll(Collection c) {      throw new UnsupportedOperationException("removeAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param c DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean retainAll(Collection c) {      throw new UnsupportedOperationException("retainAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public int size() {      throw new UnsupportedOperationException("size not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public Object[] toArray() {      throw new UnsupportedOperationException("toArray not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param a DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public Object[] toArray(Object[] a) {      throw new UnsupportedOperationException("toArray not supported!");    }  }  /**   * DESCRIBE THE CLASS   *   * @version $Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $   * @author jeffh   */  protected class MultiringKeySet implements Set {    /**     * DESCRIBE THE FIELD     */    protected Set set;    /**     * Constructor for MultiringKeySet.     *     * @param set DESCRIBE THE PARAMETER     */    public MultiringKeySet(Set set) {      this.set = set;    }    /**     * Gets the Empty attribute of the MultiringKeySet object     *     * @return The Empty value     */    public boolean isEmpty() {      throw new UnsupportedOperationException("isEmpty not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean add(Object o) {      throw new UnsupportedOperationException("add not supported!");    }    /**     * Adds a feature to the All attribute of the MultiringKeySet object     *     * @param c The feature to be added to the All attribute     * @return DESCRIBE THE RETURN VALUE     */    public boolean addAll(Collection c) {      throw new UnsupportedOperationException("addAll not supported!");    }    /**     * DESCRIBE THE METHOD     */    public void clear() {      throw new UnsupportedOperationException("clear not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean contains(Object o) {      throw new UnsupportedOperationException("contains not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param c DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean containsAll(Collection c) {      throw new UnsupportedOperationException("containsAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean equals(Object o) {      throw new UnsupportedOperationException("equals not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public int hashCode() {      throw new UnsupportedOperationException("hashCode not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public Iterator iterator() {      return        new Iterator() {          protected Iterator i = set.iterator();          public boolean hasNext() {            return i.hasNext();          }          public Object next() {            return ((RingId) i.next()).getId();          }          public void remove() {            i.remove();          }        };    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean remove(Object o) {      throw new UnsupportedOperationException("remove not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param c DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean removeAll(Collection c) {      throw new UnsupportedOperationException("removeAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param c DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean retainAll(Collection c) {      throw new UnsupportedOperationException("retainAll not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public int size() {      throw new UnsupportedOperationException("size not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public Object[] toArray() {      Object[] result = new Object[set.size()];      Iterator i = set.iterator();      int j = 0;      while (i.hasNext()) {        result[j++] = ((RingId) i.next()).getId();      }      return result;    }    /**     * DESCRIBE THE METHOD     *     * @param a DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public Object[] toArray(Object[] a) {      Object[] result = (Object[]) java.lang.reflect.Array.newInstance(a.getClass().getComponentType(), set.size());      Iterator i = set.iterator();      int j = 0;      while (i.hasNext()) {        result[j++] = ((RingId) i.next()).getId();      }      return result;    }  }  /**   * DESCRIBE THE CLASS   *   * @version $Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $   * @author jeffh   */  protected class MultiringMapEntry implements Map.Entry {    /**     * DESCRIBE THE FIELD     */    protected Map.Entry entry;    /**     * Constructor for MultiringMapEntry.     *     * @param entry DESCRIBE THE PARAMETER     */    public MultiringMapEntry(Map.Entry entry) {      this.entry = entry;    }    /**     * Gets the Key attribute of the MultiringMapEntry object     *     * @return The Key value     */    public Object getKey() {      return ((RingId) entry.getKey()).getId();    }    /**     * Gets the Value attribute of the MultiringMapEntry object     *     * @return The Value value     */    public Object getValue() {      return entry.getValue();    }    /**     * Sets the Value attribute of the MultiringMapEntry object     *     * @param value The new Value value     * @return DESCRIBE THE RETURN VALUE     */    public Object setValue(Object value) {      throw new UnsupportedOperationException("setValue not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @param o DESCRIBE THE PARAMETER     * @return DESCRIBE THE RETURN VALUE     */    public boolean equals(Object o) {      throw new UnsupportedOperationException("equals not supported!");    }    /**     * DESCRIBE THE METHOD     *     * @return DESCRIBE THE RETURN VALUE     */    public int hashCode() {      throw new UnsupportedOperationException("hashCode not supported!");    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -