类 ChartRepository.Index.Entry
- java.lang.Object
-
- org.microbean.helm.chart.repository.ChartRepository.Index.Entry
-
- 所有已实现的接口:
Comparable<ChartRepository.Index.Entry>
@Experimental public static final class ChartRepository.Index.Entry extends Object implements Comparable<ChartRepository.Index.Entry>
An entry in a Helm chart repository index.- 作者:
- Laird Nelson
-
-
方法概要
-
-
-
方法详细资料
-
compareTo
public final int compareTo(ChartRepository.Index.Entry her)
Compares thisChartRepository.Index.Entryto the suppliedChartRepository.Index.Entryand returns a value less than0if thisChartRepository.Index.Entryis "less than" the suppliedChartRepository.Index.Entry,1if thisChartRepository.Index.Entryis "greater than" the suppliedChartRepository.Index.Entryand0if thisChartRepository.Index.Entryis equal to the suppliedChartRepository.Index.Entry.ChartRepository.Index.Entryobjects are compared by name first, then version.It is intended that this
compareTo(ChartRepository.Index.Entry)method is consistent with equals.- 指定者:
compareTo在接口中Comparable<ChartRepository.Index.Entry>- 参数:
her- theChartRepository.Index.Entryto compare; must not benull- 返回:
- a value less than
0if thisChartRepository.Index.Entryis "less than" the suppliedChartRepository.Index.Entry,1if thisChartRepository.Index.Entryis "greater than" the suppliedChartRepository.Index.Entryand0if thisChartRepository.Index.Entryis equal to the suppliedChartRepository.Index.Entry - 抛出:
NullPointerException- if the suppliedChartRepository.Index.Entryisnull
-
hashCode
public final int hashCode()
- 覆盖:
hashCode在类中Object- 返回:
- a hashcode for this
ChartRepository.Index.Entry - 另请参阅:
compareTo(ChartRepository.Index.Entry),equals(Object),getName(),getVersion()
-
equals
public final boolean equals(Object other)
Returnstrueif the suppliedObjectis anChartRepository.Index.Entryand has a name and version equal to those of thisChartRepository.Index.Entry.- 覆盖:
equals在类中Object- 参数:
other- theObjectto test; may benullin which casefalsewill be returned- 返回:
trueif thisChartRepository.Index.Entryis equal to the suppliedObject;falseotherwise- 另请参阅:
compareTo(ChartRepository.Index.Entry),getName(),getVersion(),hashCode()
-
getMetadataOrBuilder
public final MetadataOuterClass.MetadataOrBuilder getMetadataOrBuilder()
Returns theMetadataOuterClass.MetadataOrBuilderthat comprises most of the contents of thisChartRepository.Index.Entry.This method never returns
null.- 返回:
- the
MetadataOuterClass.MetadataOrBuilderthat comprises most of the contents of thisChartRepository.Index.Entry; nevernull
-
getName
public final String getName()
Returns the return value of invoking theMetadataOuterClass.MetadataOrBuilder.getName()method on theMetadataOuterClass.MetadataOrBuilderreturned by thisChartRepository.Index.Entry'sgetMetadataOrBuilder()method.This method may return
null.- 返回:
- this
ChartRepository.Index.Entry's name, ornull - 另请参阅:
MetadataOuterClass.MetadataOrBuilder.getName()
-
getVersion
public final String getVersion()
Returns the return value of invoking theMetadataOuterClass.MetadataOrBuilder.getVersion()method on theMetadataOuterClass.MetadataOrBuilderreturned by thisChartRepository.Index.Entry'sgetMetadataOrBuilder()method.This method may return
null.- 返回:
- this
ChartRepository.Index.Entry's version, ornull - 另请参阅:
MetadataOuterClass.MetadataOrBuilder.getVersion()
-
getUris
public final Set<URI> getUris()
Returns a non-null, immutableSetofURIs representing the URIs from which the Helm chart described by thisChartRepository.Index.Entrymay be downloaded.This method never returns
null.- 返回:
- a non-
null, immutableSetofURIs representing the URIs from which the Helm chart described by thisChartRepository.Index.Entrymay be downloaded - 另请参阅:
getFirstUri()
-
getFirstUri
public final URI getFirstUri()
-
getDigest
public final String getDigest()
Returns the SHA-256 message digest, in hexadecimal-encodedStringform, associated with thisChartRepository.Index.Entry.This method may return
null.- 返回:
- the SHA-256 message digest, in hexadecimal-encoded
Stringform, associated with thisChartRepository.Index.Entry, ornull
-
toString
public final String toString()
- 覆盖:
toString在类中Object- 返回:
- a non-
nullStringrepresentation of thisChartRepository.Index.Entry
-
getDigest
@Experimental public static final @Experimental String getDigest(InputStream inputStream) throws IOException
Computes a SHA-256 message digest of the bytes readable from the suppliedInputStreamand returns the result of hexadecimal-encoding it.This method never returns
null.- 参数:
inputStream- theInputStreamto read from; must not benull- 返回:
- a hexadecimal-encoded
SHA-256 message digest; never
null - 抛出:
NullPointerException- ifinputStreamisnullIOException- if an input or output error occurs
-
-