public class MosaicFlags
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MosaicFlags |
create(boolean supplyMutable,
boolean transferable)
Creates a mosaic flags.
|
static MosaicFlags |
create(boolean supplyMutable,
boolean transferable,
boolean restrictable)
Creates a mosaic flags.
|
static MosaicFlags |
create(int flags)
Creates a mosaic from the configurable byte value.
|
int |
getValue()
Gets the consolidated mosaic flags value.
|
boolean |
isRestrictable()
Returns true if mosaic is restrictable
|
boolean |
isSupplyMutable()
Returns true if supply is mutable
|
boolean |
isTransferable()
Returns true if mosaic is transferable between non-owner accounts
|
public static MosaicFlags create(int flags)
flags
- the flags.public static MosaicFlags create(boolean supplyMutable, boolean transferable, boolean restrictable)
supplyMutable
- True supply can change.transferable
- True mosaic can be transfer.restrictable
- True mosaic supports restrictions.public static MosaicFlags create(boolean supplyMutable, boolean transferable)
supplyMutable
- True supply can change.transferable
- True mosaic can be transfer.public boolean isSupplyMutable()
public boolean isTransferable()
public boolean isRestrictable()
public int getValue()