Class MetadataBlockMatcher

    • Constructor Detail

      • MetadataBlockMatcher

        public MetadataBlockMatcher​(String metadataKey)
        Match MetaDataBlock containing the provided key.
        Parameters:
        metadataKey - the key of the MetaData
      • MetadataBlockMatcher

        public MetadataBlockMatcher​(String metadataKey,
                                    Object metadataValue)
        Match MetaDataBlock containing the provided key/value pair.
        Parameters:
        metadataKey - the key of the MetaData
        metadataValue - the value of the MetaData
    • Method Detail

      • match

        public boolean match​(Block block)
        Description copied from interface: BlockMatcher
        True if the provided block is matched.
        Specified by:
        match in interface BlockMatcher
        Overrides:
        match in class ClassBlockMatcher
        Parameters:
        block - the block to match
        Returns:
        true if the provided block is matched, false otherwise