Пример #1
0
 public static ColorSet fromNames(final Iterable<String> colors) {
   byte mask = 0;
   for (final String s : colors) {
     mask |= MagicColor.fromName(s);
   }
   return fromMask(mask);
 }
Пример #2
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#toString()
  */
 @Override
 public String toString() {
   if (this.orderWeight == -1) {
     return "n/a";
   }
   final String toReturn = MagicColor.toLongString(myColor);
   if (toReturn == MagicColor.Constant.COLORLESS && myColor != 0) {
     return "multi";
   }
   return toReturn;
 }