Java 类gnu.trove.iterator.TObjectLongIterator 实例源码

项目:xcc    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:xcc    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:HCFCore    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:HCFCore    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:HCFCore    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:HCFCore    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:trove-3.0.3    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
@Override
@SuppressWarnings("rawtypes")
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:trove-3.0.3    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
@Override
@SuppressWarnings("rawtypes")
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:easyrec_major    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() && that.containsKey( key ) ) ) {
                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:easyrec_major    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() && that.containsKey( key ) ) ) {
                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:recalot.com    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:recalot.com    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:easyrec-PoC    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() && that.containsKey( key ) ) ) {
                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:easyrec-PoC    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() && that.containsKey( key ) ) ) {
                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:ProtocolSupport    文件:ThrottleTracker.java   
public static boolean throttle(InetAddress address) {
    synchronized (tracker) {
        long ctime = System.currentTimeMillis();
        TObjectLongIterator<InetAddress> iterator = tracker.iterator();
        while (iterator.hasNext()) {
            iterator.advance();
            if (iterator.value() < ctime) {
                iterator.remove();
            }
        }
        long ret = tracker.put(address, ctime + time);
        return ret != tracker.getNoEntryValue();
    }
}
项目:easyrec    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() && that.containsKey( key ) ) ) {
                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:easyrec    文件:TObjectLongCustomHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() && that.containsKey( key ) ) ) {
                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:RPG-Items-2    文件:TObjectLongHashMap.java   
/**
 * Compares this map with another map for equality of their stored
 * entries.
 *
 * @param other an <code>Object</code> value
 * @return a <code>boolean</code> value
 */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TObjectLongMap ) ) {
        return false;
    }
    TObjectLongMap that = ( TObjectLongMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TObjectLongIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            Object key = iter.key();
            long value = iter.value();
            if ( value == no_entry_value ) {
                if ( !( that.get( key ) == that.getNoEntryValue() &&
                 that.containsKey( key ) ) ) {

                    return false;
                }
            } else {
                if ( value != that.get( key ) ) {
                    return false;
                }
            }
        }
    } catch ( ClassCastException ex ) {
        // unused.
    }
    return true;
}
项目:xcc    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:xcc    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:HCFCore    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:HCFCore    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:HCFCore    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:HCFCore    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:trove-3.0.3    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
@Override
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator( this );
}
项目:trove-3.0.3    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
@Override
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator( this );
}
项目:easyrec_major    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:easyrec_major    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:recalot.com    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:recalot.com    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:easyrec-PoC    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:easyrec-PoC    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:pre-cu    文件:AutoDeltaStringLongMap.java   
public TObjectLongIterator<String> iterator() {
    return container.iterator();
}
项目:pre-cu    文件:AutoDeltaObjectLongMap.java   
public TObjectLongIterator<K> iterator() {
    return container.iterator();
}
项目:easyrec    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:easyrec    文件:TObjectLongCustomHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:RPG-Items-2    文件:TObjectLongHashMap.java   
/**
 * @return an iterator over the entries in this map
 */
public TObjectLongIterator<K> iterator() {
    return new TObjectLongHashIterator<K>( this );
}
项目:xcc    文件:TObjectLongMap.java   
/**
 * Returns a <tt>TObjectLongIterator</tt> with access to this map's keys and values.
 *
 * @return a <tt>TObjectLongIterator</tt> with access to this map's keys and values.
 */
public TObjectLongIterator<K> iterator();
项目:HCFCore    文件:TObjectLongMap.java   
/**
 * Returns a <tt>TObjectLongIterator</tt> with access to this map's keys and values.
 *
 * @return a <tt>TObjectLongIterator</tt> with access to this map's keys and values.
 */
public TObjectLongIterator<K> iterator();
项目:HCFCore    文件:TObjectLongMap.java   
/**
 * Returns a <tt>TObjectLongIterator</tt> with access to this map's keys and values.
 *
 * @return a <tt>TObjectLongIterator</tt> with access to this map's keys and values.
 */
public TObjectLongIterator<K> iterator();