use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project geode by apache.
the class GatewaySenderEventCallbackArgument method fromData.
@Override
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
super.fromData(in);
this.originatingDSId = DataSerializer.readInteger(in);
this.receipientDSIds = new IntOpenHashSet(2);
int numberOfRecipientGateways = in.readInt();
for (int i = 0; i < numberOfRecipientGateways; i++) {
this.receipientDSIds.add(in.readInt());
}
}
use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project gradle by gradle.
the class ClassDependenciesVisitor method analyze.
public static ClassAnalysis analyze(String className, ClassReader reader) {
IntSet constants = new IntOpenHashSet(2);
Set<String> classDependencies = Sets.newHashSet();
ClassDependenciesVisitor visitor = new ClassDependenciesVisitor(constants, classDependencies, new ClassRelevancyFilter(className), reader);
reader.accept(visitor, ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
return new ClassAnalysis(className, classDependencies, visitor.isDependencyToAll(), constants, visitor.getSuperTypes());
}
use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project gradle by gradle.
the class JarSnapshot method getRelevantConstants.
public IntSet getRelevantConstants(JarSnapshot other, Set<String> affectedClasses) {
IntSet result = new IntOpenHashSet();
for (String affectedClass : affectedClasses) {
IntSet difference = new IntOpenHashSet(other.getData().data.getConstants(affectedClass));
difference.removeAll(data.data.getConstants(affectedClass));
result.addAll(difference);
}
return result;
}
use of it.unimi.dsi.fastutil.ints.IntOpenHashSet in project gradle by gradle.
the class PreviousCompilation method getDependents.
public DependentsSet getDependents(String className, IntSet newConstants) {
IntSet constants = new IntOpenHashSet(analysis.getData().getConstants(className));
constants.removeAll(newConstants);
return analysis.getRelevantDependents(className, constants);
}
Aggregations