public class Arguments extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Arguments.ArgumentsBuilder |
| Constructor and Description |
|---|
Arguments() |
Arguments(String shell,
List<String> exec,
List<String> execInlined) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
asStrings() |
static Arguments.ArgumentsBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<String> |
getExec() |
List<String> |
getExecInlined()
Used to distinguish between shorter version
|
String |
getShell() |
int |
hashCode() |
void |
set(String shell)
Used to support shell specified as a default parameter, e.g.
|
void |
setExec(List<String> exec) |
void |
setExecInlined(List<String> execInlined)
Used to distinguish between shorter version
|
void |
setShell(String shell) |
void |
validate() |
public void set(String shell)
<cmd>java -jar $HOME/server.jar</cmd>Read more on this and other useful techniques.
shell - shell provided as stringpublic void validate()
public static Arguments.ArgumentsBuilder builder()
public String getShell()
public List<String> getExecInlined()
<cmd>
<arg>echo</arg>
<arg>Hello, world!</arg>
</cmd>
from the full one
<cmd>
<exec>
<arg>echo</arg>
<arg>Hello, world!</arg>
</exec>
</cmd>
and throw a validation error if both specified.public void setShell(String shell)
public void setExecInlined(List<String> execInlined)
<cmd>
<arg>echo</arg>
<arg>Hello, world!</arg>
</cmd>
from the full one
<cmd>
<exec>
<arg>echo</arg>
<arg>Hello, world!</arg>
</exec>
</cmd>
and throw a validation error if both specified.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.