Interface Package


public interface Package
This interface provides the name and the number of the total downloads of the NuGet package.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Package
    of(String title, long totalDownloads)
    Returns the new package object with the specified title and the number of total downloads.
    Returns the name of the NuGet package.
    long
    Returns the number of the total downloads.
  • Method Details

    • title

      String title()
      Returns the name of the NuGet package.
      Returns:
      The name of the NuGet package.
    • totalDownloads

      long totalDownloads()
      Returns the number of the total downloads.
      Returns:
      The number of the total downloads.
    • of

      static Package of(String title, long totalDownloads)
      Returns the new package object with the specified title and the number of total downloads.

      Note that the object that this method returns is immutable.

      Parameters:
      title - The name of the NuGet package.
      totalDownloads - The number of the total downloads.
      Returns:
      The new package object.