Value enum with ByteEnumEntry entries
Value enum with ByteEnumEntry entries
This is similar to enumeratum.Enum, but different in that values must be literal values. This restraint allows us to enforce uniqueness at compile time.
Note that uniqueness is only guaranteed if you do not do any runtime string manipulation on values.
Value Enum Entry parent class for Byte valued entries
Value enum with CharEnumEntry entries
Value enum with CharEnumEntry entries
This is similar to enumeratum.Enum, but different in that values must be literal values. This restraint allows us to enforce uniqueness at compile time.
Note that uniqueness is only guaranteed if you do not do any runtime string manipulation on values.
Value Enum Entry parent class for Char valued entries
EXPERIMENTAL - A Scala mutable map that wraps a java ConcurrentHashMap and allows null values
EXPERIMENTAL - A Scala mutable Set based on ConcurrentHashMap
All the cool kids have their own Enumeration implementation, most of which try to do so in the name of implementing exhaustive pattern matching.
All the cool kids have their own Enumeration implementation, most of which try to do so in the name of implementing exhaustive pattern matching.
This is yet another one.
Example:
scala> import enumeratum._ scala> sealed trait DummyEnum extends EnumEntry scala> object DummyEnum extends Enum[DummyEnum] { | val values = findValues | case object Hello extends DummyEnum | case object GoodBye extends DummyEnum | case object Hi extends DummyEnum | } scala> DummyEnum.withNameOption("Hello") res0: Option[DummyEnum] = Some(Hello) scala> DummyEnum.withNameOption("Nope") res1: Option[DummyEnum] = None
The sealed trait
Base type for an enum entry for Enum
Like java.io.ByteArrayOutputStream but exposes the internal Array
Used in RichHTMLDocument
These are the Implicits that are shared between both the JVM and JS Implicits trait/object
These are the Implicits that are shared between both the JVM and JS Implicits trait/object
Value enum with IntEnumEntry entries
Value Enum Entry parent class for Int valued entries
Javascript Stub that does nothing
EXPERIMENTAL - A Java Set based on ConcurrentHashMap
Value enum with LongEnumEntry entries
Value Enum Entry parent class for Long valued entries
scala.math.Ordering only goes up to Tuple9
Represents immutable query parameters from a query string (e.g.
Represents immutable query parameters from a query string (e.g. "?foo=bar&asd=qwe").
This class distinguishes between 3 different types of values for a key:
This is a replacement for the deprecated scala.collection.SeqProxy.
This is a replacement for the deprecated scala.collection.SeqProxy.
This doesn't implement Seq[A] like the original SeqProxy but instead just provides an implicit conversion from this trait into a Seq[A] which then gives you all the Seq functionality
This is here so that LazySeq can be split out into it's own project.
This is here so that LazySeq can be split out into it's own project.
Some implementations are still in our internal Util package for now until we get a chance to refactor and possible merge with our fm-serializer project.
Value enum with ShortEnumEntry entries
Value Enum Entry parent class for Short valued entries
Value enum with StringEnumEntry entries
Value enum with StringEnumEntry entries
This is similar to enumeratum.Enum, but different in that values must be literal values. This restraint allows us to enforce uniqueness at compile time.
Note that uniqueness is only guaranteed if you do not do any runtime string manipulation on values.
Value Enum Entry parent class for String valued entries
Value Enum Entry parent class for String valued entries
This is similar to enumeratum.Enum, but different in that values must be literal values. This restraint allows us to enforce uniqueness at compile time.
Note that uniqueness is only guaranteed if you do not do any runtime string manipulation on values.
Wraps a Scala mutable.HashMap inside of a ThreadLocal and exposes some simple operations.
Wraps a Scala mutable.HashMap inside of a ThreadLocal and exposes some simple operations.
The initial use case of this is for caching NumberFormat instances by Locale. This can be accomplished by overriding the initialValue method and just calling the apply() method with the Locale.
The HashMap Key
The HashMap Value
A type alias for java.net.URI
A type alias for java.net.URL
Wraps an InputStream and makes the close() method do nothing
Wraps an OutputStream and makes the close() method do nothing
Helpers for accessing the "user-" attributes
Helpers for accessing the "user-" attributes
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes
Base trait for a Value-based enums.
Base trait for a Value-based enums.
Example:
scala> sealed abstract class Greeting(val value: Int) extends IntEnumEntry scala> object Greeting extends IntEnum[Greeting] { | val values = findValues | case object Hello extends Greeting(1) | case object GoodBye extends Greeting(2) | case object Hi extends Greeting(3) | case object Bye extends Greeting(4) | } scala> Greeting.withValueOpt(1) res0: Option[Greeting] = Some(Hello) scala> Greeting.withValueOpt(6) res1: Option[Greeting] = None
Created by Lloyd on 4/11/16.
Created by Lloyd on 4/11/16.
Copyright 2016
Some type class hackery to solve the same problem as with the NodeType class
This is the same as scala.collection.JavaConverters with a few additional methods.
This is the same as scala.collection.JavaConverters with a few additional methods.
Specifically you can now call .asScalaNullToEmpty to have null java collections converted to an empty collection to avoid NullPointerExceptions
Some type class hackery to make our $ and $$ methods NOT default to Nothing when trying to do something like $("#some_id").parentNode.
Some type class hackery to make our $ and $$ methods NOT default to Nothing when trying to do something like $("#some_id").parentNode. You'd think this would work:
def $[T <: Node](selector: String): T = ??? $("#some_id").parentNode
But it doesn't:
Error: "value parentNode is not a member of Nothing"
Implicits that go along with the Serializer trait
Simple wrappers for the java.net.URI constructors
Simple wrappers for the java.net.URL constructors