--
You received this message because you are subscribed to the Google Groups "scala-sips" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-sips+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mike
--
You received this message because you are subscribed to the Google Groups "scala-sips" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-sips+unsubscribe@googlegroups.com.
For the use case where a Java enum needs to be extended into Scala and a sealed implementation is desired
--
You received this message because you are subscribed to the Google Groups "scala-sips" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-sips+...@googlegroups.com.
At the type or the value level?
Value level: DropMode.values.toSet
--
You received this message because you are subscribed to the Google Groups "scala-sips" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-sips+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
scala> import collection.JavaConverters._
import collection.JavaConverters._
scala> java.util.EnumSet.allOf(classOf[DropMode]).asScala
res3: scala.collection.mutable.Set[javax.swing.DropMode] = Set(USE_SELECTION, ON, INSERT, INSERT_ROWS, INSERT_COLS, ON_OR_INSERT, ON_OR_INSERT_ROWS, ON_OR_INSERT_COLS)
This should already exist, since, iirc, Java enums imement Comparable.
import scala.math.Ordering. Implicits
Days.MONDAY < Days.FRIDAY
Oops, that should be import scala.math.Ordering.Implicits._
--
You received this message because you are subscribed to the Google Groups "scala-sips" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-sips+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.