public class RequestCodeFlags extends Object implements Comparable<RequestCodeFlags>
| Constructor and Description |
|---|
RequestCodeFlags()
Default constructor
|
RequestCodeFlags(boolean getFlag,
boolean postFlag,
boolean putFlag,
boolean deleteFlag,
boolean fetchFlag,
boolean patchFlag,
boolean ipatchFlag)
Constructor setting the flags.
|
RequestCodeFlags(RequestCodeFlags original)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RequestCodeFlags other) |
boolean |
equals(Object other)
Check on equality to another object.
|
int |
hashCode()
Get hashCode
|
boolean |
isDelete() |
boolean |
isFetch() |
boolean |
isGet() |
boolean |
isIpatch() |
boolean |
isNotDelete() |
boolean |
isNotFetch() |
boolean |
isNotGet() |
boolean |
isNotIpatch() |
boolean |
isNotPatch() |
boolean |
isNotPost() |
boolean |
isNotPut() |
boolean |
isPatch() |
boolean |
isPost() |
boolean |
isPut() |
void |
setDelete(boolean flag)
Set the delete flag.
|
void |
setFetch(boolean flag)
Set the fetch flag.
|
void |
setGet(boolean flag)
Set the Get flag
|
void |
setIpatch(boolean flag)
Set the ipatch flag.
|
void |
setPatch(boolean flag)
Set the patch flag.
|
void |
setPost(boolean flag)
Set the post flag.
|
void |
setPut(boolean flag)
Set the put flag.
|
String |
toString()
Get String representation of the requestCodeFlags.
|
public RequestCodeFlags()
public RequestCodeFlags(RequestCodeFlags original)
public RequestCodeFlags(boolean getFlag,
boolean postFlag,
boolean putFlag,
boolean deleteFlag,
boolean fetchFlag,
boolean patchFlag,
boolean ipatchFlag)
getFlag - the state of the get flag to setpostFlag - the state of the post flag to setputFlag - the state of the get put to setdeleteFlag - the state of the delete flag to setfetchFlag - the state of the fetch flag to setpatchFlag - the state of the patch flag to setipatchFlag - the state of the ipatch flag to setpublic void setGet(boolean flag)
flag - the state of the flag to setpublic boolean isGet()
public boolean isNotGet()
public void setPost(boolean flag)
flag - the state of the flagpublic boolean isPost()
public boolean isNotPost()
public void setPut(boolean flag)
flag - the state of the flagpublic boolean isPut()
public boolean isNotPut()
public void setDelete(boolean flag)
flag - the state of the flagpublic boolean isDelete()
public boolean isNotDelete()
public void setFetch(boolean flag)
flag - the state of the flagpublic boolean isFetch()
public boolean isNotFetch()
public void setPatch(boolean flag)
flag - the state of the flagpublic boolean isPatch()
public boolean isNotPatch()
public void setIpatch(boolean flag)
flag - the state of the flagpublic boolean isIpatch()
public boolean isNotIpatch()
public boolean equals(Object other)
public int compareTo(RequestCodeFlags other)
compareTo in interface Comparable<RequestCodeFlags>Copyright © 2019–2024 Teslanet.nl. All rights reserved.