public class Version extends Object implements Comparable<Version>
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
after(Version another) |
boolean |
afterOrEquals(Version another) |
int |
asInt() |
boolean |
before(Version another) |
boolean |
beforeOrEquals(Version another) |
static int |
compare(Version x,
Version y) |
int |
compareTo(Version another) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public Version(int major,
int minor,
int patch)
public Version(String version)
public int asInt()
public int compareTo(Version another)
compareTo 在接口中 Comparable<Version>public boolean after(Version another)
public boolean afterOrEquals(Version another)
public boolean before(Version another)
public boolean beforeOrEquals(Version another)
Copyright © 2025 fossc. All rights reserved.