Repository: jena Updated Branches: refs/heads/master bead39ed9 -> cb7a6d179
Rleated to JENA-777. Remove GraphAddList which is not used. Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/cb7a6d17 Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/cb7a6d17 Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/cb7a6d17 Branch: refs/heads/master Commit: cb7a6d179a6282a21f0074ed19f5c9054c9c7404 Parents: bead39e Author: Andy Seaborne <a...@apache.org> Authored: Thu Oct 23 16:24:46 2014 +0100 Committer: Andy Seaborne <a...@apache.org> Committed: Thu Oct 23 16:24:46 2014 +0100 ---------------------------------------------------------------------- .../hp/hpl/jena/graph/impl/GraphAddList.java | 65 -------------------- 1 file changed, 65 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/cb7a6d17/jena-core/src/main/java/com/hp/hpl/jena/graph/impl/GraphAddList.java ---------------------------------------------------------------------- diff --git a/jena-core/src/main/java/com/hp/hpl/jena/graph/impl/GraphAddList.java b/jena-core/src/main/java/com/hp/hpl/jena/graph/impl/GraphAddList.java deleted file mode 100644 index 3634342..0000000 --- a/jena-core/src/main/java/com/hp/hpl/jena/graph/impl/GraphAddList.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.hp.hpl.jena.graph.impl; - -import java.util.*; - -import com.hp.hpl.jena.graph.*; - -/** - A List that implements the GraphAdd interface, so that it can be passed - to things that want to add triples to Graphs. The triples are filtered. - @depecated This will be removed. -*/ -@Deprecated -public class GraphAddList implements GraphAdd - { - protected Triple match; - protected final ArrayList<Triple> triples = new ArrayList<>(); - - /** - Initialise a GraphAddList with a triple [pattern] that specifies what triples - will be accepted into the list. - @depecated This will be removed. - */ - @Deprecated - public GraphAddList( Triple match ) { this.match = match; } - - /** - Add the triple <code>t</code> to this list if it is matched by the pattern. - */ - @Override - public void add( Triple t ) { if (match.matches( t )) triples.add( t ); } - - /** - The number of triples held. - */ - public int size() { return triples.size(); } - - /** - Answer the last triple, and remove it. - */ - public Triple removeLast() { return triples.remove( triples.size() - 1 ); } - - /** - Answer an iterator over all the triples in this add-list. - */ - public Iterator<Triple> iterator() - { return triples.iterator(); } - }