Modifier and Type | Class and Description |
---|---|
private static record |
Modifier and Type | Field and Description |
---|---|
private ModuleReferenceImpl. | |
private int | |
private final ModuleHashes. | |
private final URI | |
private final ModuleResolution | |
private final ModulePatcher | |
private final Supplier | |
private final ModuleHashes | |
private final ModuleTarget |
Access | Constructor and Description |
---|---|
public | ModuleReferenceImpl(ModuleDescriptor descriptor, URI location, Supplier<ModuleReader> readerSupplier, ModulePatcher patcher, ModuleTarget target, ModuleHashes recordedHashes, ModuleHashes.
Constructs a new instance of this class. |
Modifier and Type | Method and Description |
---|---|
public byte[] | |
public boolean | equals(Object
the reference object with which to compare. ob)Overrides java. Indicates whether some other object is "equal to" this one. |
public int | |
pack-priv ModuleHashes. | |
public boolean | |
public ModuleResolution | |
public ModuleTarget | |
public ModuleReader | open()
Implements abstract java. Opens the module content for reading. |
public ModuleHashes | |
public String |
cachedHash | back to summary |
---|---|
private ModuleReferenceImpl. |
hash | back to summary |
---|---|
private int hash |
hasher | back to summary |
---|---|
private final ModuleHashes. |
location | back to summary |
---|---|
private final URI location |
moduleResolution | back to summary |
---|---|
private final ModuleResolution moduleResolution |
patcher | back to summary |
---|---|
private final ModulePatcher patcher |
readerSupplier | back to summary |
---|---|
private final Supplier<ModuleReader> readerSupplier |
recordedHashes | back to summary |
---|---|
private final ModuleHashes recordedHashes |
target | back to summary |
---|---|
private final ModuleTarget target |
ModuleReferenceImpl | back to summary |
---|---|
public ModuleReferenceImpl(ModuleDescriptor descriptor, URI location, Supplier<ModuleReader> readerSupplier, ModulePatcher patcher, ModuleTarget target, ModuleHashes recordedHashes, ModuleHashes. Constructs a new instance of this class. |
computeHash | back to summary |
---|---|
public byte[] computeHash(String algorithm) Computes the hash of this module. Returns
|
equals | back to summary |
---|---|
public boolean equals(Object ob) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
hasher | back to summary |
---|---|
pack-priv ModuleHashes. Returns the supplier that computes the hash of this module. |
isPatched | back to summary |
---|---|
public boolean isPatched() Returns |
moduleResolution | back to summary |
---|---|
public ModuleResolution moduleResolution() Returns the ModuleResolution flags. |
moduleTarget | back to summary |
---|---|
public ModuleTarget moduleTarget() Returns the ModuleTarget or |
open | back to summary |
---|---|
public ModuleReader open() throws IOException Implements abstract java. Doc from java. Opens the module content for reading.
|
recordedHashes | back to summary |
---|---|
public ModuleHashes recordedHashes() Returns the hashes recorded in this module or |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- |
Modifier and Type | Field and Description |
---|---|
private final String | algorithm
Record Component accessed by algorithm(). |
private final byte[] |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public String | |
public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
public byte[] | |
public final int | |
public final String | toString()
Implements abstract java. Returns a string representation of the record. |
algorithm | back to summary |
---|---|
private final String algorithm Record Component accessed by algorithm(). |
hash | back to summary |
---|---|
private final byte[] hash Record Component accessed by hash(). |
CachedHash | back to summary |
---|---|
private CachedHash(byte[] hash, String algorithm) |
algorithm | back to summary |
---|---|
public String algorithm() Record Component getter of algorithm. |
equals | back to summary |
---|---|
public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of R copy = new R(r.c1(), r.c2(), ..., r.cn());then it must be the case that r.equals(copy) .
|
hash | back to summary |
---|---|
public byte[] hash() Record Component getter of hash. |
hashCode | back to summary |
---|---|
public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
|
toString | back to summary |
---|---|
public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
|