mirror of https://github.com/apache/jclouds.git
Formatting
This commit is contained in:
parent
1d5472d082
commit
0d6fd403bc
|
@ -31,25 +31,24 @@ import com.google.common.collect.Iterables;
|
|||
*/
|
||||
public enum MacAddressToBSD implements Function<String, String> {
|
||||
|
||||
INSTANCE;
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public String apply(String macAddress) {
|
||||
checkArgument(macAddress.length() == 17);
|
||||
return Joiner.on(":").join(
|
||||
Iterables.transform(Splitter.on(":").split(macAddress),
|
||||
new Function<String, String>() {
|
||||
@Override
|
||||
public String apply(String arg0) {
|
||||
if (arg0.equals("00"))
|
||||
return "0";
|
||||
if (arg0.startsWith("0"))
|
||||
return arg0.substring(1);
|
||||
@Override
|
||||
public String apply(String macAddress) {
|
||||
checkArgument(macAddress.length() == 17);
|
||||
return Joiner.on(":").join(
|
||||
Iterables.transform(Splitter.on(":").split(macAddress),
|
||||
new Function<String, String>() {
|
||||
@Override
|
||||
public String apply(String arg0) {
|
||||
if (arg0.equals("00"))
|
||||
return "0";
|
||||
if (arg0.startsWith("0"))
|
||||
return arg0.substring(1);
|
||||
|
||||
return arg0;
|
||||
}
|
||||
|
||||
}));
|
||||
}
|
||||
return arg0;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue