001/* 002 * Forge Mod Loader 003 * Copyright (c) 2012-2013 cpw. 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser Public License v2.1 006 * which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 008 * 009 * Contributors: 010 * cpw - implementation 011 */ 012 013package cpw.mods.fml.common.versioning; 014 015/* 016 * Licensed to the Apache Software Foundation (ASF) under one 017 * or more contributor license agreements. See the NOTICE file 018 * distributed with this work for additional information 019 * regarding copyright ownership. The ASF licenses this file 020 * to you under the Apache License, Version 2.0 (the 021 * "License"); you may not use this file except in compliance 022 * with the License. You may obtain a copy of the License at 023 * 024 * http://www.apache.org/licenses/LICENSE-2.0 025 * 026 * Unless required by applicable law or agreed to in writing, 027 * software distributed under the License is distributed on an 028 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 029 * KIND, either express or implied. See the License for the 030 * specific language governing permissions and limitations 031 * under the License. 032 */ 033 034/** 035 * Describes an artifact version in terms of its components, converts it to/from a string and 036 * compares two versions. 037 * 038 * @author <a href="mailto:brett@apache.org">Brett Porter</a> 039 */ 040public interface ArtifactVersion 041 extends Comparable<ArtifactVersion> 042{ 043 String getLabel(); 044 045 String getVersionString(); 046 047 boolean containsVersion(ArtifactVersion source); 048 049 String getRangeString(); 050}