-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.suse.salt.netapi.results; | ||
|
||
/** | ||
* result of a module.run in a state file | ||
* @param <R> inner changes type | ||
*/ | ||
public class ModuleRun<R> { | ||
|
||
private final R changes; | ||
private final String comment; | ||
private final boolean result; | ||
|
||
/** | ||
* constructor | ||
* | ||
* @param changesIn changes | ||
* @param commentIn comment | ||
* @param resultIn result | ||
*/ | ||
public ModuleRun(R changesIn, String commentIn, boolean resultIn) { | ||
this.changes = changesIn; | ||
this.comment = commentIn; | ||
this.result = resultIn; | ||
} | ||
|
||
/** | ||
* get changes | ||
* @return changes | ||
*/ | ||
public R getChanges() { | ||
return changes; | ||
} | ||
|
||
/** | ||
* get comment | ||
* @return comment | ||
*/ | ||
public String getComment() { | ||
return comment; | ||
} | ||
|
||
/** | ||
* get result | ||
* @return result | ||
*/ | ||
public boolean isResult() { | ||
return result; | ||
} | ||
} |