package org.apache.jackrabbit.oak.util;

/**
 * Utility class containing type safe counterparts for some of the predicates of
 * commons-collections.
 */
public class Predicates {
    private static final Predicate<?> NOT_NULL = new Predicate<Object>() {
        @Override
        public boolean evaluate(Object arg) {
            return arg != null;
        }
    };

    private Predicates() {
    }

    @SuppressWarnings("unchecked")
    public static <T> Predicate<T> nonNull() {
        return (Predicate<T>) NOT_NULL;
    }
}

@@ -1,8 +1,804 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements. See the NOTICE file distributed with this%0A * work for additional information regarding copyright ownership. The ASF%0A * licenses this file to You under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A */%0A
 package 

Refactor ModifiedNodeState and related classes to use type safe iterator utilities missing license header (again, sorry)