Class Rom

    • Constructor Detail

      • Rom

        public Rom()
        Constructs a new empty instance.
      • Rom

        protected Rom​(boolean noInit)
        Constructs a new empty instance.
      • Rom

        public Rom​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • Rom

        public Rom​(Rom src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getId

        public String getId()
        Unique identifier
      • getCreatedAt

        public Long getCreatedAt()
        When the ROM was created
      • getVersion

        public Long getVersion()
      • getVersionName

        public String getVersionName()
      • getDescription

        public String getDescription()
      • getIsCritical

        public Boolean getIsCritical()
      • getPublished

        public Boolean getPublished()
      • getEnabled

        public Boolean getEnabled()
      • getAssociationTime

        public Long getAssociationTime()
        When the ROM was associated with a merchant group
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullCreatedAt

        public boolean isNotNullCreatedAt()
        Checks whether the 'createdAt' field is set and is not null
      • isNotNullVersion

        public boolean isNotNullVersion()
        Checks whether the 'version' field is set and is not null
      • isNotNullVersionName

        public boolean isNotNullVersionName()
        Checks whether the 'versionName' field is set and is not null
      • isNotNullDescription

        public boolean isNotNullDescription()
        Checks whether the 'description' field is set and is not null
      • isNotNullBuildType

        public boolean isNotNullBuildType()
        Checks whether the 'buildType' field is set and is not null
      • isNotNullIsCritical

        public boolean isNotNullIsCritical()
        Checks whether the 'isCritical' field is set and is not null
      • isNotNullPublished

        public boolean isNotNullPublished()
        Checks whether the 'published' field is set and is not null
      • isNotNullEnabled

        public boolean isNotNullEnabled()
        Checks whether the 'enabled' field is set and is not null
      • isNotNullAssociationTime

        public boolean isNotNullAssociationTime()
        Checks whether the 'associationTime' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasCreatedAt

        public boolean hasCreatedAt()
        Checks whether the 'createdAt' field has been set, however the value could be null
      • hasVersion

        public boolean hasVersion()
        Checks whether the 'version' field has been set, however the value could be null
      • hasVersionName

        public boolean hasVersionName()
        Checks whether the 'versionName' field has been set, however the value could be null
      • hasDescription

        public boolean hasDescription()
        Checks whether the 'description' field has been set, however the value could be null
      • hasBuildType

        public boolean hasBuildType()
        Checks whether the 'buildType' field has been set, however the value could be null
      • hasIsCritical

        public boolean hasIsCritical()
        Checks whether the 'isCritical' field has been set, however the value could be null
      • hasPublished

        public boolean hasPublished()
        Checks whether the 'published' field has been set, however the value could be null
      • hasEnabled

        public boolean hasEnabled()
        Checks whether the 'enabled' field has been set, however the value could be null
      • hasAssociationTime

        public boolean hasAssociationTime()
        Checks whether the 'associationTime' field has been set, however the value could be null
      • setId

        public Rom setId​(String id)
        Sets the field 'id'.
      • setCreatedAt

        public Rom setCreatedAt​(Long createdAt)
        Sets the field 'createdAt'.
      • setVersion

        public Rom setVersion​(Long version)
        Sets the field 'version'.
      • setVersionName

        public Rom setVersionName​(String versionName)
        Sets the field 'versionName'.
      • setDescription

        public Rom setDescription​(String description)
        Sets the field 'description'.
      • setBuildType

        public Rom setBuildType​(RomBuildType buildType)
        Sets the field 'buildType'.
      • setIsCritical

        public Rom setIsCritical​(Boolean isCritical)
        Sets the field 'isCritical'.
      • setPublished

        public Rom setPublished​(Boolean published)
        Sets the field 'published'.
      • setEnabled

        public Rom setEnabled​(Boolean enabled)
        Sets the field 'enabled'.
      • setAssociationTime

        public Rom setAssociationTime​(Long associationTime)
        Sets the field 'associationTime'.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearCreatedAt

        public void clearCreatedAt()
        Clears the 'createdAt' field, the 'has' method for this field will now return false
      • clearVersion

        public void clearVersion()
        Clears the 'version' field, the 'has' method for this field will now return false
      • clearVersionName

        public void clearVersionName()
        Clears the 'versionName' field, the 'has' method for this field will now return false
      • clearDescription

        public void clearDescription()
        Clears the 'description' field, the 'has' method for this field will now return false
      • clearBuildType

        public void clearBuildType()
        Clears the 'buildType' field, the 'has' method for this field will now return false
      • clearIsCritical

        public void clearIsCritical()
        Clears the 'isCritical' field, the 'has' method for this field will now return false
      • clearPublished

        public void clearPublished()
        Clears the 'published' field, the 'has' method for this field will now return false
      • clearEnabled

        public void clearEnabled()
        Clears the 'enabled' field, the 'has' method for this field will now return false
      • clearAssociationTime

        public void clearAssociationTime()
        Clears the 'associationTime' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public Rom copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Rom src)
        Copy all the changed fields from the given source to this instance.