-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for different subsystems
- Loading branch information
1 parent
ce08561
commit dcf0d3b
Showing
6 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
core/src/main/java/org/wildfly/extras/creaper/core/offline/NameSpaceVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.wildfly.extras.creaper.core.offline; | ||
|
||
public class NameSpaceVersion { | ||
private int major; | ||
private int minor; | ||
|
||
public NameSpaceVersion(int major, int minor) { | ||
this.major = major; | ||
this.minor = minor; | ||
} | ||
|
||
/** | ||
* Detect whether current version is less then another version. | ||
* @param comparison Second version for comparison. | ||
* @return True or false based on the check. | ||
*/ | ||
public boolean lessThen(NameSpaceVersion comparison) { | ||
if (this.major < comparison.major) { | ||
return true; | ||
} else if (this.major == comparison.major) { | ||
if (this.minor < comparison.minor) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters