Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing checkstyle problems
  • Loading branch information
ajs6f committed Oct 24, 2013
1 parent 5eea9be commit c825b32
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
@@ -1,9 +1,23 @@
/**
* Copyright 2013 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.fcrepo.kernel.utils.iterators;

import java.util.Iterator;
import java.util.Queue;
import java.util.Set;

import com.google.common.base.Predicate;

Expand All @@ -26,12 +40,21 @@ public class DifferencingIterator<T> {

private Iterator<T> source;

/**
* Default constructor.
*
* @param toBeMatched
* @param source
*/
public DifferencingIterator(final Predicate<T> toBeMatched,
final Iterator<T> source) {
this.toBeMatched = toBeMatched;
this.source = source;
}

/**
* Executes the differencing.
*/
public void divide() {
while (source.hasNext()) {
final T next = source.next();
Expand Down
@@ -1,3 +1,18 @@
/**
* Copyright 2013 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.fcrepo.kernel.rdf.impl;

Expand Down

0 comments on commit c825b32

Please sign in to comment.