Interface Descriptor

    • Method Detail

      • getId

        String getId()
        The descriptor id, descriptors with same id are merged.

        To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.

        To forbid merge use a unique value, non-overriden toString() for exemple.

      • merge

        default Descriptor merge​(Descriptor other)
        Returns a descriptor representing other merged into this

        Default implementation returns other.

        the merged descriptor
      • doesRemove

        default boolean doesRemove()
        During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.

        If the last descriptor of same id doesRemove() return true, the descriptor for this id will be null.