Java 类com.google.common.collect.Multisets.ImmutableEntry 实例源码

项目:guava-mock    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask];
      entry != null;
      entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:googles-monorepo-demo    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask];
      entry != null;
      entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask];
      entry != null;
      entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:VectorAttackScanner    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask]; entry != null;
      entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:guava    文件:RegularImmutableMultiset.java   
@Override
public int count(@NullableDecl Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask];
      entry != null;
      entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask]; entry != null; entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask]; entry != null; entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask]; entry != null; entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public int count(@Nullable Object element) {
  Multisets.ImmutableEntry<E>[] hashTable = this.hashTable;
  if (element == null || hashTable == null) {
    return 0;
  }
  int hash = Hashing.smearedHash(element);
  int mask = hashTable.length - 1;
  for (Multisets.ImmutableEntry<E> entry = hashTable[hash & mask]; entry != null; entry = entry.nextInBucket()) {
    if (Objects.equal(element, entry.getElement())) {
      return entry.getCount();
    }
  }
  return 0;
}
项目:guava-mock    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:guava-mock    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:googles-monorepo-demo    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:googles-monorepo-demo    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:codebuff    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:VectorAttackScanner    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:VectorAttackScanner    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}
项目:guava    文件:RegularImmutableMultiset.java   
NonTerminalEntry(E element, int count, ImmutableEntry<E> nextInBucket) {
  super(element, count);
  this.nextInBucket = nextInBucket;
}
项目:guava    文件:RegularImmutableMultiset.java   
@Override
public ImmutableEntry<E> nextInBucket() {
  return nextInBucket;
}