1 package org.apache.archiva.repository.storage.util;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
21 import org.apache.archiva.repository.storage.StorageAsset;
23 import java.util.LinkedList;
24 import java.util.List;
25 import java.util.function.Consumer;
26 import java.util.function.Function;
27 import java.util.function.Predicate;
30 * @author Martin Stockhammer <martin_s@apache.org>
34 LinkedList<StorageAsset> visited = new LinkedList<>( );
41 public void add( StorageAsset asset )
43 // System.out.println( "Adding " + asset.getPath( ) );
44 visited.addLast( asset );
47 public StorageAsset getLast( )
49 return visited.getLast( );
52 public StorageAsset getFirst() {
53 return visited.getFirst( );
56 public List<StorageAsset> getVisited( )
63 return visited.size( );