T - a subclass of AbstractProfiledItemU - the class of the items that are profiled at the specific BCI and for which
probabilities are stored. E.g., a ResolvedJavaType or a ResolvedJavaMethod.public abstract class AbstractJavaProfile<T extends AbstractProfiledItem<U>,U> extends Object
| Modifier and Type | Field and Description |
|---|---|
private double |
notRecordedProbability |
private T[] |
pitems |
| Constructor and Description |
|---|
AbstractJavaProfile(double notRecordedProbability,
T[] pitems) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
findEntry(ResolvedJavaType type)
Searches for an entry of a given resolved Java type.
|
protected T[] |
getItems() |
double |
getNotRecordedProbability()
Returns the estimated probability of all types that could not be recorded due to profiling
limitations.
|
int |
hashCode() |
boolean |
isIncluded(U item) |
private boolean |
isSorted()
Determines if an array of profiled items are sorted in descending order of their
probabilities.
|
String |
toString() |
private double |
totalProbablility() |
private final double notRecordedProbability
private final T extends AbstractProfiledItem<U>[] pitems
public AbstractJavaProfile(double notRecordedProbability, T[] pitems)
private double totalProbablility()
private boolean isSorted()
public double getNotRecordedProbability()
public T findEntry(ResolvedJavaType type)
type - the type for which an entry should be searchedpublic boolean isIncluded(U item)