Created
June 26, 2014 15:57
-
-
Save Riduidel/3a82cbba9ed54f651522 to your computer and use it in GitHub Desktop.
Helper methods for attributs in Mojo-Executor
This file contains hidden or 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
| public static Attributes with(Attribute...attributes) { | |
| return new Attributes(attributes); | |
| } | |
| public static Attribute attr(String key, String value) { | |
| return new Attribute(key, value); | |
| } | |
| public static Attribute attr(String key, File value) { | |
| return new Attribute(key, value.getAbsolutePath()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment