Class Equipment

  • All Implemented Interfaces:
    com.github.fmjsjx.libcommon.bson.model.BsonModel

    public class Equipment
    extends com.github.fmjsjx.libcommon.bson.model.DefaultMapValueModel<java.lang.String,​Equipment>
    • Field Summary

      • Fields inherited from class com.github.fmjsjx.libcommon.bson.model.DefaultMapValueModel

        key, parent
      • Fields inherited from class com.github.fmjsjx.libcommon.bson.model.ObjectModel

        FULL, updatedFields
    • Constructor Summary

      Constructors 
      Constructor Description
      Equipment()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void appendFieldUpdates​(java.util.List<org.bson.conversions.Bson> updates)  
      protected int deletedSize()  
      int getAtk()  
      int getDef()  
      int getHp()  
      java.lang.String getId()  
      int getRefId()  
      void load​(org.bson.BsonDocument src)  
      void load​(org.bson.Document src)  
      void reset()  
      protected void resetChildren()  
      void setAtk​(int atk)  
      void setDef​(int def)  
      void setHp​(int hp)  
      void setId​(java.lang.String id)  
      void setRefId​(int refId)  
      org.bson.BsonDocument toBson()  
      java.util.Map<java.lang.Object,​java.lang.Object> toDelete()  
      org.bson.Document toDocument()  
      java.lang.String toString()  
      java.lang.Object toSubUpdate()  
      • Methods inherited from class com.github.fmjsjx.libcommon.bson.model.DefaultMapValueModel

        bound, emitUpdated, key, key, parent, parent, unbind, xpath
      • Methods inherited from class com.github.fmjsjx.libcommon.bson.model.ObjectModel

        appendFullyUpdate, appendUpdates, fullyUpdate, fullyUpdate, resetStates, toUpdate, updated
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Equipment

        public Equipment()
    • Method Detail

      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String id)
      • getRefId

        public int getRefId()
      • setRefId

        public void setRefId​(int refId)
      • getAtk

        public int getAtk()
      • setAtk

        public void setAtk​(int atk)
      • getDef

        public int getDef()
      • setDef

        public void setDef​(int def)
      • getHp

        public int getHp()
      • setHp

        public void setHp​(int hp)
      • toBson

        public org.bson.BsonDocument toBson()
        Specified by:
        toBson in interface com.github.fmjsjx.libcommon.bson.model.BsonModel
        Specified by:
        toBson in class com.github.fmjsjx.libcommon.bson.model.DefaultMapValueModel<java.lang.String,​Equipment>
      • toDocument

        public org.bson.Document toDocument()
      • load

        public void load​(org.bson.Document src)
      • load

        public void load​(org.bson.BsonDocument src)
      • appendFieldUpdates

        protected void appendFieldUpdates​(java.util.List<org.bson.conversions.Bson> updates)
        Specified by:
        appendFieldUpdates in class com.github.fmjsjx.libcommon.bson.model.ObjectModel<Equipment>
      • resetChildren

        protected void resetChildren()
      • toSubUpdate

        public java.lang.Object toSubUpdate()
        Specified by:
        toSubUpdate in class com.github.fmjsjx.libcommon.bson.model.ObjectModel<Equipment>
      • toDelete

        public java.util.Map<java.lang.Object,​java.lang.Object> toDelete()
        Specified by:
        toDelete in interface com.github.fmjsjx.libcommon.bson.model.BsonModel
      • deletedSize

        protected int deletedSize()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • reset

        public void reset()
        Specified by:
        reset in interface com.github.fmjsjx.libcommon.bson.model.BsonModel