コード例 #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;
 }