public static final class Tools.PortSearchParameters
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
PortSearchParameters() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
void |
setMaxAmount(int type,
int maxAmount)
Sets the maximum amount of a product to search for.
|
void |
setMaxPercentage(int type,
int maxPer)
Sets the maximum percentage of a product to search for.
|
void |
setMinAmount(int type,
int minAmount)
Sets the minimum amount of a product to search for.
|
void |
setMinPercentage(int type,
int minPer)
Sets the minimum percentage of a product to search for.
|
void |
setPortOption(int type,
boolean buying)
Sets if the port should be buying or selling a specific product.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setPortOption(int type,
boolean buying)
type - The type of product.buying - true if the port should be buying the product or
false if the port should be selling the product.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic void setMinAmount(int type,
int minAmount)
type - The type of product.minAmount - The minimum amount.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic void setMaxAmount(int type,
int maxAmount)
type - The type of product.maxAmount - The maximum amount.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic void setMinPercentage(int type,
int minPer)
type - The type of product.minPer - The minimum percentage.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic void setMaxPercentage(int type,
int maxPer)
type - The type of product.maxPer - The maximum percentage.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT