Interface Resource

All Known Subinterfaces:
AppJarFile, BndBaselineEvaluation, ClassFile, ClasspathElement, ClassTree, Cleanliness, EclipseConfiguration, ExecResult, FileResource, FileTree<T>, IOResource, JarFile, JavadocDirectory, JavadocJarFile, JavaResourceTree, JavaSourceFile, LibraryJarFile, MvnPublication, MvnRepoBom, MvnRepoDependency, MvnRepoJarFile, MvnRepoLibraryJarFile, MvnRepoPom, MvnRepoResource, PomFile, ResourceFile, Resources<T>, SourcesJarFile, TestResult, VscodeConfiguration
All Known Implementing Classes:
DefaultBndBaselineEvaluation, DefaultClassTree, DefaultEclipseConfiguration, DefaultExecResult, DefaultFileResource, DefaultFileTree, DefaultJarFile, DefaultJavaResourceTree, DefaultLibraryJarFile, DefaultMvnRepoResource, DefaultResources, DefaultTestResult, JarFileEntry, ManifestAttributes, ResourceObject, ServicesEntryResource

public interface Resource
Represents a resource handled by the builder. Resources can have names that may be referenced in ResourceRequests.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Instant
    The instant at which this resource was created or last modified.
    default String
    Returns a localized string representation of the instant at which this resource was created or last modified.
    Returns the name of this resource if set.
    Returns the type of this resource.
  • Method Details

    • asOf

      default Instant asOf()
      The instant at which this resource was created or last modified.
      Returns:
      the instant
    • type

      Returns the type of this resource.
      Returns:
      the type
    • name

      Returns the name of this resource if set.
      Returns:
      the optional
    • asOfLocalized

      default String asOfLocalized()
      Returns a localized string representation of the instant at which this resource was created or last modified.
      Returns:
      the string