@Transferable public class ModuleMetricsArtifact extends Artifact<ModuleMetricsArtifact>
Modifier | Constructor and Description |
---|---|
|
ModuleMetricsArtifact() |
protected |
ModuleMetricsArtifact(Class<? extends Linker> linker,
int instanceId) |
Modifier and Type | Method and Description |
---|---|
protected int |
compareToComparableArtifact(ModuleMetricsArtifact o)
Performs comparison with an artifact of a compatible base type.
|
protected Class<ModuleMetricsArtifact> |
getComparableArtifactType()
Returns the base type to use for comparisons between Artifacts.
|
long |
getElapsedMilliseconds() |
String[] |
getInitialTypes() |
String[] |
getSourceFiles() |
int |
hashCode()
The class which is returned from
Artifact.getComparableArtifactType() must
declare a final implementation which returns the same hash code for objects
for which Artifact.compareToComparableArtifact(Artifact) returns 0. |
ModuleMetricsArtifact |
setElapsedMilliseconds(long elapsedMilliseconds) |
ModuleMetricsArtifact |
setInitialTypes(Collection<String> initialTypes) |
ModuleMetricsArtifact |
setSourceFiles(String[] sourceFiles) |
compareTo, equals, getLinker, isTransferableFromShards, toString
$isInstance
public long getElapsedMilliseconds()
public String[] getInitialTypes()
public String[] getSourceFiles()
public int hashCode()
Artifact
Artifact.getComparableArtifactType()
must
declare a final implementation which returns the same hash code for objects
for which Artifact.compareToComparableArtifact(Artifact)
returns 0.hashCode
in class Artifact<ModuleMetricsArtifact>
public ModuleMetricsArtifact setElapsedMilliseconds(long elapsedMilliseconds)
elapsedMilliseconds
- wall clock time elapsed since start of module
load to end of the initial type oracle build.public ModuleMetricsArtifact setInitialTypes(Collection<String> initialTypes)
initialTypes
- the number of types resulting from the initial type
oracle build which compiles all of the source files initially
presented to the compiler.public ModuleMetricsArtifact setSourceFiles(String[] sourceFiles)
sourceFiles
- the list of source files presented to the compiler on
the module source path.protected int compareToComparableArtifact(ModuleMetricsArtifact o)
Artifact
Artifact.hashCode()
.compareToComparableArtifact
in class Artifact<ModuleMetricsArtifact>
protected final Class<ModuleMetricsArtifact> getComparableArtifactType()
Artifact
getComparableArtifactType
in class Artifact<ModuleMetricsArtifact>
Copyright © 2018. All rights reserved.