Package org.xrpl.xrpl4j.model.flags
Class OfferFlags
java.lang.Object
org.xrpl.xrpl4j.model.flags.Flags
org.xrpl.xrpl4j.model.flags.OfferFlags
A set of static
Flags which can be set on OfferObjects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final OfferFlagsConstantOfferFlagsfor thelsfHybridflag.protected static final OfferFlagsConstantOfferFlagsfor thelsfPassiveflag.protected static final OfferFlagsConstantOfferFlagsfor thelsfSellflag. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates the offer is hybrid.booleanThe object was placed as a passive offer.booleanlsfSell()The object was placed as a sell offer.static OfferFlagsof(long value) ConstructOfferFlagswith a given value.
-
Field Details
-
PASSIVE
ConstantOfferFlagsfor thelsfPassiveflag. -
SELL
ConstantOfferFlagsfor thelsfSellflag. -
HYBRID
ConstantOfferFlagsfor thelsfHybridflag.
-
-
Method Details
-
of
ConstructOfferFlagswith a given value.- Parameters:
value- The long-number encoded flags value of thisOfferFlags.- Returns:
- New
OfferFlags.
-
lsfPassive
public boolean lsfPassive()The object was placed as a passive offer. This has no effect on the object in the ledger.- Returns:
trueiflsfPassiveis set, otherwisefalse.
-
lsfSell
public boolean lsfSell()The object was placed as a sell offer. This has no effect on the object in the ledger (because tfSell only matters if you get a better rate than you asked for, which cannot happen after the object enters the ledger).- Returns:
trueiflsfSellis set, otherwisefalse.
-
lsfHybrid
public boolean lsfHybrid()Indicates the offer is hybrid. (meaning it is part of both a domain and open order book).- Returns:
trueiflsfHybridis set, otherwisefalse.
-