@Override public boolean add(T key) { int index = this.index(key); Object cur = this.table[index]; if (cur == null) { this.table[index] = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) { this.rehash(); } return true; } if (cur instanceof ChainedBucket || !this.nonNullTableObjectEquals(cur, key)) { return this.chainedAdd(key, index); } return false; }
@Override public boolean add(T key) { int index = this.index(key); Object cur = this.table[index]; if (cur == null) { this.table[index] = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) { this.rehash(); } return true; } if (cur instanceof ChainedBucket || !this.nonNullTableObjectEquals(cur, key)) { return this.chainedAdd(key, index); } return false; }
@Override public T put(T key) { int index = this.index(key); Object cur = this.table[index]; if (cur == null) { this.table[index] = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) { this.rehash(); } return key; } if (cur instanceof ChainedBucket || !this.nonNullTableObjectEquals(cur, key)) { return this.chainedPut(key, index); } return this.nonSentinel(cur); }
@Override public T put(T key) { int index = this.index(key); Object cur = this.table[index]; if (cur == null) { this.table[index] = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) { this.rehash(); } return key; } if (cur instanceof ChainedBucket || !this.nonNullTableObjectEquals(cur, key)) { return this.chainedPut(key, index); } return this.nonSentinel(cur); }
private boolean chainedAdd(T key, int index) Object realKey = UnifiedSet.toSentinelIfNull(key); if (this.table[index] instanceof ChainedBucket)
private boolean chainedAdd(T key, int index) Object realKey = UnifiedSet.toSentinelIfNull(key); if (this.table[index] instanceof ChainedBucket)
private T chainedPut(T key, int index) Object realKey = UnifiedSet.toSentinelIfNull(key); if (this.table[index] instanceof ChainedBucket)
private T chainedPut(T key, int index) Object realKey = UnifiedSet.toSentinelIfNull(key); if (this.table[index] instanceof ChainedBucket)
@Override public boolean add(T key) { int index = this.index(key); Object cur = this.table[index]; if (cur == null) { this.table[index] = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) { this.rehash(); } return true; } if (cur instanceof ChainedBucket || !this.nonNullTableObjectEquals(cur, key)) { return this.chainedAdd(key, index); } return false; }
@Override public T put(T key) { int index = this.index(key); Object cur = this.table[index]; if (cur == null) { this.table[index] = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) { this.rehash(); } return key; } if (cur instanceof ChainedBucket || !this.nonNullTableObjectEquals(cur, key)) { return this.chainedPut(key, index); } return this.nonSentinel(cur); }
bucket.one = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) bucket.two = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize) bucket.three = UnifiedSet.toSentinelIfNull(key); if (++this.occupied > this.maxSize)
private boolean chainedAdd(T key, int index) Object realKey = UnifiedSet.toSentinelIfNull(key); if (this.table[index] instanceof ChainedBucket)