/**
 * 扩展一些Groovy方法
 */
class Ignore_GroovyExtensions {

    static void apply() {
        List.metaClass {
            findQuotedElement = { Map<String, String> conditions ->
                delegate.find { element ->
                    conditions.every { condition, value -> element[condition] == value }
                }
            }

            findQuotedElements = { Map<String, String> conditions ->
                delegate.findAll { element ->
                    conditions.every { condition, value -> element[condition] == value }
                }
            }
        }
    }
}
