Class Attachments


  • public final class Attachments
    extends Object
    A set of attachments for an entity.
    • Constructor Detail

      • Attachments

        public Attachments()
    • Method Detail

      • attachIfAbsent

        public <T> T attachIfAbsent​(Attachments.Key<T> key,
                                    T value)
      • replaceAttachment

        public <T> boolean replaceAttachment​(Attachments.Key<T> key,
                                             T expect,
                                             T replacement)
      • removeAttachment

        public <T> T removeAttachment​(Attachments.Key<T> key)
      • removeAttachment

        public <T> boolean removeAttachment​(Attachments.Key<T> key,
                                            T value)