public class SimpleSupply extends Object implements com.github.siwenyan.dish_parser.ISupply
| Constructor and Description |
|---|
SimpleSupply() |
SimpleSupply(List<com.github.siwenyan.dish_parser.SupplyLine> supplyLines) |
SimpleSupply(String line) |
SimpleSupply(String[] lines) |
SimpleSupply(com.github.siwenyan.dish_parser.SupplyLine supplyLine) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStack(int cutInCount,
List<com.github.siwenyan.dish_parser.Trace> stack) |
void |
addStack(List<com.github.siwenyan.dish_parser.Trace> stack) |
void |
addStack(String traceString) |
void |
appendSupply(com.github.siwenyan.dish_parser.ISupply supply) |
void |
beDelicious(boolean delicious) |
void |
clear() |
SimpleSupply |
clone() |
void |
cutInSupply(com.github.siwenyan.dish_parser.ISupply supply,
int cutInAt) |
boolean |
equals(Object o) |
com.github.siwenyan.dish_parser.Flavor |
getFlavor(int index) |
String |
getLine(int index) |
List<String> |
getLines() |
List<com.github.siwenyan.dish_parser.Trace> |
getStack(int index) |
com.github.siwenyan.dish_parser.ISupply |
getSupply(int index) |
List<com.github.siwenyan.dish_parser.SupplyLine> |
getSupplyLines() |
boolean |
hasSupply(int index) |
boolean |
isEmpty() |
boolean |
isPoison() |
static com.github.siwenyan.dish_parser.ISupply |
loadSupply(Scanner scanner) |
com.github.siwenyan.dish_parser.ISupply |
removeSupply(int index) |
void |
replaceFlavor(int index,
com.github.siwenyan.dish_parser.Flavor.FlavorPart flavorPart,
String replacement) |
void |
setLines(List<String> lines) |
void |
setLines(String[] lines) |
void |
setPoison(boolean isPoison) |
int |
size() |
void |
supplySupply(String line) |
String |
toJson() |
String |
toString() |
String |
toString(int limit) |
public SimpleSupply()
public SimpleSupply(String line) throws com.github.siwenyan.dish_parser.BadSmellException
com.github.siwenyan.dish_parser.BadSmellExceptionpublic SimpleSupply(String[] lines) throws com.github.siwenyan.dish_parser.BadSmellException
com.github.siwenyan.dish_parser.BadSmellExceptionpublic SimpleSupply(com.github.siwenyan.dish_parser.SupplyLine supplyLine)
public SimpleSupply(List<com.github.siwenyan.dish_parser.SupplyLine> supplyLines)
public static com.github.siwenyan.dish_parser.ISupply loadSupply(Scanner scanner) throws com.github.siwenyan.dish_parser.BadSmellException
com.github.siwenyan.dish_parser.BadSmellExceptionpublic List<String> getLines()
getLines in interface com.github.siwenyan.dish_parser.ISupplypublic String getLine(int index)
getLine in interface com.github.siwenyan.dish_parser.ISupplypublic void setLines(String[] lines) throws com.github.siwenyan.dish_parser.BadSmellException
setLines in interface com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic void setLines(List<String> lines) throws com.github.siwenyan.dish_parser.BadSmellException
setLines in interface com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic com.github.siwenyan.dish_parser.Flavor getFlavor(int index)
getFlavor in interface com.github.siwenyan.dish_parser.ISupplypublic int size()
size in interface com.github.siwenyan.dish_parser.ISupplypublic void setPoison(boolean isPoison)
setPoison in interface com.github.siwenyan.dish_parser.ISupplypublic boolean isPoison()
isPoison in interface com.github.siwenyan.dish_parser.ISupplypublic boolean isEmpty()
isEmpty in interface com.github.siwenyan.dish_parser.ISupplypublic void appendSupply(com.github.siwenyan.dish_parser.ISupply supply)
appendSupply in interface com.github.siwenyan.dish_parser.ISupplypublic void supplySupply(String line) throws com.github.siwenyan.dish_parser.BadSmellException
supplySupply in interface com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic void cutInSupply(com.github.siwenyan.dish_parser.ISupply supply,
int cutInAt)
cutInSupply in interface com.github.siwenyan.dish_parser.ISupplypublic void clear()
clear in interface com.github.siwenyan.dish_parser.ISupplypublic String toString(int limit)
toString in interface com.github.siwenyan.dish_parser.ISupplypublic com.github.siwenyan.dish_parser.ISupply getSupply(int index)
getSupply in interface com.github.siwenyan.dish_parser.ISupplypublic boolean hasSupply(int index)
hasSupply in interface com.github.siwenyan.dish_parser.ISupplypublic com.github.siwenyan.dish_parser.ISupply removeSupply(int index)
removeSupply in interface com.github.siwenyan.dish_parser.ISupplypublic void beDelicious(boolean delicious)
throws com.github.siwenyan.dish_parser.BadSmellException
beDelicious in interface com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic List<com.github.siwenyan.dish_parser.Trace> getStack(int index)
getStack in interface com.github.siwenyan.dish_parser.ISupplypublic void addStack(List<com.github.siwenyan.dish_parser.Trace> stack)
addStack in interface com.github.siwenyan.dish_parser.ISupplypublic List<com.github.siwenyan.dish_parser.SupplyLine> getSupplyLines()
getSupplyLines in interface com.github.siwenyan.dish_parser.ISupplypublic void addStack(int cutInCount,
List<com.github.siwenyan.dish_parser.Trace> stack)
addStack in interface com.github.siwenyan.dish_parser.ISupplypublic void addStack(String traceString)
addStack in interface com.github.siwenyan.dish_parser.ISupplypublic void replaceFlavor(int index,
com.github.siwenyan.dish_parser.Flavor.FlavorPart flavorPart,
String replacement)
throws com.github.siwenyan.dish_parser.BadSmellException
replaceFlavor in interface com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic SimpleSupply clone()
public String toJson()
toJson in interface com.github.siwenyan.dish_parser.ISupplyCopyright © 2020. All rights reserved.