Class Price
java.lang.Object
com.github.rvesse.airline.examples.sendit.Price
- All Implemented Interfaces:
ExampleRunnable
@Command(name="price",
description="Calculates the price for a parcel")
public class Price
extends Object
implements ExampleRunnable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
run()
Runs the command and returns an exit code that the application should return
-
Field Details
-
service
@Option(name={"-s","--service"}, title="Service", description="Specifies the postal service you would like to use") private PostalService service -
item
-
-
Constructor Details
-
Price
public Price()
-
-
Method Details
-
run
public int run()Description copied from interface:ExampleRunnable
Runs the command and returns an exit code that the application should return- Specified by:
run
in interfaceExampleRunnable
- Returns:
- Exit code
-