Class Resource.ResourceBuilder

java.lang.Object
org.ivoa.dm.proposal.management.Resource.ResourceBuilder
Enclosing class:
Resource

public static class Resource.ResourceBuilder extends Object
A builder class for Resource, mainly for use in the functional builder pattern.
  • Field Details

    • type

      public ResourceType type
      the type of the resource.
    • amount

      public Double amount
      The amount of the resource.
  • Constructor Details

    • ResourceBuilder

      public ResourceBuilder()
  • Method Details

    • create

      public Resource create()
      create a Resource from this builder.
      Returns:
      an object initialized from the builder.