X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2FNameVersion.java;fp=org.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2FNameVersion.java;h=0000000000000000000000000000000000000000;hb=d07cf3c7dfdeafa2b1efafe547b54d56a8b52ced;hp=45ce5835dabc8977c7c9374d6fe5bb718f677aab;hpb=8596685647867307b862b8a89742b6a62ba75fcd;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.api/src/org/argeo/slc/NameVersion.java b/org.argeo.slc.api/src/org/argeo/slc/NameVersion.java deleted file mode 100644 index 45ce5835d..000000000 --- a/org.argeo.slc.api/src/org/argeo/slc/NameVersion.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.argeo.slc; - -/** - * Abstraction of a name / version pair, typically used as coordinates for a - * software module either deployed or packaged as an archive. - */ -public interface NameVersion { - /** The name of the component. */ - String getName(); - - /** The version of the component. */ - String getVersion(); - - /** - * The forward compatible branch of this version, by default it is - * [major].[minor]. - */ - default String getBranch() { - String[] parts = getVersion().split("\\."); - if (parts.length < 2) - throw new IllegalStateException("Version " + getVersion() + " cannot be interpreted as branch."); - return parts[0] + "." + parts[1]; - } -}