This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.indexer.merger.base;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import org.apache.archiva.indexer.merger.IndexMerger;
023import org.apache.archiva.indexer.merger.IndexMergerRequest;
024
025/**
026 * @author Olivier Lamy
027 * @since 2.0.0
028 */
029public class MergedRemoteIndexesTaskRequest
030{
031    private IndexMergerRequest indexMergerRequest;
032
033    private IndexMerger indexMerger;
034
035    public MergedRemoteIndexesTaskRequest( IndexMergerRequest indexMergerRequest, IndexMerger indexMerger )
036    {
037        this.indexMergerRequest = indexMergerRequest;
038        this.indexMerger = indexMerger;
039    }
040
041    public IndexMergerRequest getIndexMergerRequest()
042    {
043        return indexMergerRequest;
044    }
045
046    public void setIndexMergerRequest( IndexMergerRequest indexMergerRequest )
047    {
048        this.indexMergerRequest = indexMergerRequest;
049    }
050
051    public IndexMerger getIndexMerger()
052    {
053        return indexMerger;
054    }
055
056    public void setIndexMerger( IndexMerger indexMerger )
057    {
058        this.indexMerger = indexMerger;
059    }
060
061    @Override
062    public boolean equals( Object o )
063    {
064        if ( this == o )
065        {
066            return true;
067        }
068        if ( o == null || getClass() != o.getClass() )
069        {
070            return false;
071        }
072
073        MergedRemoteIndexesTaskRequest that = (MergedRemoteIndexesTaskRequest) o;
074
075        return indexMergerRequest.equals( that.indexMergerRequest );
076    }
077
078    @Override
079    public int hashCode()
080    {
081        return indexMergerRequest.hashCode();
082    }
083}