Class BmObjectMatch

    • Constructor Detail

      • BmObjectMatch

        public BmObjectMatch​(IBmModel model,
                             long objectId)
        Create instance of BM based object match
        Parameters:
        model - the BM model contain matched object, cannot be null
        objectId - the match object ID
    • Method Detail

      • getObjectId

        public long getObjectId()
        Get the object ID
        Returns:
        the matched object ID
      • getElement

        public Object getElement()
        Description copied from class: Match
        Returns the element that contains this match. The element is used to group the match.
        Specified by:
        getElement in class Match
        Returns:
        the element that contains this match, cannot be null
      • resolve

        public Optional<IBmObject> resolve()
        Resolve match object
        Returns:
        return the object with the specified ID or null if it does not exist.
        Throws:
        IllegalStateException - if engine of BM model is disposed or not in 'running' state
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Match