package common
- Alphabetic
- By Inheritance
- common
- Implicits
- ImplicitsBase
- OrderingImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait BaseEncoding extends AnyRef
-
class
BoundedInputStream extends org.apache.commons.io.input.BoundedInputStream
This is just org.apache.commons.io.input.BoundedInputStream
This is just org.apache.commons.io.input.BoundedInputStream
This cannot be a Scala class because the ScalaSignature will contain a reference to org.apache.commons.io.input.BoundedInputStream even though Proguard rewrites the name.
-
final
class
ByteArrayImageInputStream extends ImageInputStreamImpl
An ImageInputStream implementation that reads from an Array[Byte]
-
final
class
ByteArrayImageOutputStream extends ImageOutputStreamImpl
An ImageOutputStream implementation that writes to a Array[Byte]
-
class
ByteArrayOutputStream extends org.apache.commons.io.output.ByteArrayOutputStream
This is just org.apache.commons.io.output.ByteArrayOutputStream
This is just org.apache.commons.io.output.ByteArrayOutputStream
This cannot be a Scala class because the ScalaSignature will contain a reference to org.apache.commons.io.output.ByteArrayOutputStream even though Proguard rewrites the name.
-
final
class
ByteBufferInputStream extends InputStream
A Simple InputStream wrapper around a ByteBuffer
-
final
class
ByteBufferOutputStream extends OutputStream
A Simple OutputStream wrapper around a ByteBuffer
-
sealed
class
Cache[K, V] extends AnyRef
Wrapper around com.google.common.cache.Cache
-
final
class
ColorPatternLayoutEncoder extends PatternLayoutEncoder
A simple Logback extension to the PatternLayoutEncoder that adds simple coloring for WARN and ERROR levels
-
final
class
ConcurrentHashMap[A, B] extends Map[A, B]
EXPERIMENTAL - A Scala mutable map that wraps a java ConcurrentHashMap and allows null values
-
final
class
ConcurrentHashSet[A] extends Set[A]
EXPERIMENTAL - A Scala mutable Set based on ConcurrentHashMap
-
final
class
Crypto extends Logging
A Simple Crypto Class
A Simple Crypto Class
NOTE: Use at your own risk. We make no claim that any of this Crypto code is correct.
-
final
case class
DummyResource[A](a: A) extends Resource[A] with Product with Serializable
A Dummy Resource that does nothing
- final case class EmailSender(user: String, pass: String, host: String) extends Product with Serializable
-
trait
Enum[A <: EnumEntry] extends AnyRef
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.
How to use:
sealed trait DummyEnum object DummyEnum extends Enum[DummyEnum] { val values = findValues case object Hello extends DummyEnum case object GoodBye extends DummyEnum case object Hi extends DummyEnum } DummyEnum.values should be(Set(Hello, GoodBye, Hi)) DummyEnum.withName("Hello") should be(Hello)
- A
The sealed trait
-
abstract
class
EnumEntry extends AnyRef
Base type for an enum entry for Enum
-
final
class
FlatMappedResource[A, B] extends Resource[B]
For Resource.flatMap
-
final
class
GrowableByteArray extends OutputStream
Like java.io.ByteArrayOutputStream but exposes the internal Array
-
final
class
IP extends AnyVal with Ordered[IP] with IPOrSubnet
Simple Wrapper around an IPv4 Address
- sealed trait IPMap[T] extends AnyRef
- final class IPMapImmutable[T] extends IPMap[T]
- final class IPMapMutable[T] extends IPMap[T] with Builder[(IPOrSubnet, T), IPMapImmutable[T]]
- trait IPOrSubnet extends Any
- sealed trait IPSet extends AnyRef
- final class IPSetImmutable extends IPSet
- final class IPSetMutable extends IPSet with Builder[IPOrSubnet, IPSetImmutable]
- final case class IPSubnet(ip: IP, bits: Int) extends IPOrSubnet with Product with Serializable
- final case class IPSubnets(subnets: Vector[IPSubnet]) extends Product with Serializable
- final class ImmutableArray[+A] extends IndexedSeq[A] with IndexedSeqOptimized[A, ImmutableArray[A]]
- final class ImmutableArrayBuilder[A] extends Builder[A, ImmutableArray[A]]
-
final
case class
ImmutableDate(millis: Long) extends Ordered[ImmutableDate] with Product with Serializable
Represents an immutable java.util.Date
Represents an immutable java.util.Date
This provides an immutable milliseconds since epoch representation of a date when it might be a mismatch to use the newer java.time.Instance (which represents things as nanoseconds since or before epoch)
NOTE: NOT extending AnyVal so that nulls still work (just like with java.util.Date)
- trait Implicits extends ImplicitsBase
-
trait
ImplicitsBase extends OrderingImplicits
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
- Attributes
- protected
- trait IndexedSeqProxy[A] extends AnyRef
- final case class InputStreamResource(resource: Resource[InputStream], fileName: String = "", autoDecompress: Boolean = true, autoBuffer: Boolean = true) extends Resource[InputStream] with Logging with Product with Serializable
-
trait
IntEnum[A <: IntEnumEntry] extends ValueEnum[Int, A]
Value enum with IntEnumEntry entries
-
abstract
class
IntEnumEntry extends ValueEnumEntry[Int]
Value Enum Entry parent class for Int valued entries
-
final
case class
Interner[T <: AnyRef]() extends Product with Serializable
Wraper around Guava's Interner class.
Wraper around Guava's Interner class.
Originally I had a generic Intern object that had a map of Class[_] to Guava Interner but that relies on a correct implementation of equals which can make it error prone. For Example an Option[Char] can == an Option[Int]. So instead you have to be explicit about creating an Interner.
- abstract class InvalidCharFilterReader extends FilterReader with Logging
- final case class InvalidIPException(msg: String) extends IllegalArgumentException with Product with Serializable
- trait IterableProxy[A] extends AnyRef
-
final
class
JavaConcurrentHashSet[A] extends Set[A]
EXPERIMENTAL - A Java Set based on ConcurrentHashMap
-
class
LineIterator extends org.apache.commons.io.LineIterator
This is just org.apache.commons.io.LineIterator
This is just org.apache.commons.io.LineIterator
This cannot be a Scala class because the ScalaSignature will contain a reference to org.apache.commons.io.LineIterator even though Proguard rewrites the name.
-
final
class
LoadingCache[K, V] extends Cache[K, V]
Wrapper around com.google.common.cache.LoadingCache
- trait Logger extends AnyRef
-
trait
Logging extends AnyRef
This can be extended for basic logging functionality
- final case class LoggingCaptureConfig(logger: org.slf4j.Logger, pattern: String, file: File, overwrite: Boolean) extends Product with Serializable
-
trait
LongEnum[A <: LongEnumEntry] extends ValueEnum[Long, A]
Value enum with LongEnumEntry entries
-
abstract
class
LongEnumEntry extends ValueEnumEntry[Long]
Value Enum Entry parent class for Long valued entries
- trait MapProxy[K, V] extends AnyRef
-
final
class
MappedResource[A, B] extends Resource[B]
For Resource.map
-
final
class
MessageCrypto extends AnyRef
Compatible with the Rails MessageEncryptor using 'aes-256-cbc' and MessageVerifier using 'sha1' when working with *String* values.
Compatible with the Rails MessageEncryptor using 'aes-256-cbc' and MessageVerifier using 'sha1' when working with *String* values.
Also compatible with the custom MessageCrypto which marshalls values as JSON instead of using the ruby Marshal.dump and Marshal.load. Use json=true to dump using JSON.
MessageEncryptor uses Marshal.dump and Marshal.load on whatever values you are trying to encrypt/sign. A subset of Marshal.dump and Marshal.load have been implemented to support String values.
NOTE: This is a legacy class that was created when we switched from Rails to Scala. It is still used in a few places but probably needs to be refactored to remove the old Ruby marshalling stuff.
-
final
class
MultiUseResource[+A] extends Resource[A]
A Resource that can be used multiple times (e.g.
A Resource that can be used multiple times (e.g. opening an InputStream or Reader for a File)
-
trait
OrderingImplicits extends AnyRef
scala.math.Ordering only goes up to Tuple9
- final case class OutputStreamResource(resource: Resource[OutputStream], fileName: String = "", autoCompress: Boolean = true, compressionLevel: Int = Deflater.BEST_SPEED, buffered: Boolean = true, internalArchiveFileName: Option[String] = None) extends Resource[OutputStream] with Product with Serializable
- final case class ProgressStats(dotPer: Long = 1000L, statsPer: Long = 25000L, logFinalStats: Boolean = false) extends Logging with Product with Serializable
-
final
class
QueryParams extends Seq[(String, String)] with SeqLike[(String, String), QueryParams]
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:
- null - "?foo"
- blank - "?foo="
- non-blank - "?foo=bar"
- final class QueryParamsBuilder extends Builder[(String, String), QueryParams]
- abstract class ReloadableFileResource[T] extends ReloadableResource[T]
- abstract class ReloadableResource[T] extends Logging
-
trait
Resource[+A] extends AnyRef
An Automatically Managed Resource that can either be used once (e.g.
An Automatically Managed Resource that can either be used once (e.g. reading an input stream) or multiple times (e.g. reading a file).
The purpose of Resource is two-fold: 1 - To automatically handle closing a resource after it is done being used. 2 - To abstract the fact that some resources can be read multiple times while other resources are one-time use.
- final class ScheduledFuture[T] extends Future[T] with ScheduledTask
- trait ScheduledTask extends AnyRef
-
final
case class
ScheduledTaskRunner(name: String, threads: Int = ...) extends TaskRunnerBase with Product with Serializable
- Annotations
- @implicitNotFound( ... )
-
trait
SeqProxy[A] extends AnyRef
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
-
trait
Serializer[T] extends AnyRef
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.
- trait SetProxy[A] extends AnyRef
-
trait
ShortEnum[A <: ShortEnumEntry] extends ValueEnum[Short, A]
Value enum with ShortEnumEntry entries
-
abstract
class
ShortEnumEntry extends ValueEnumEntry[Short]
Value Enum Entry parent class for Short valued entries
-
final
class
SingleUseResource[+A] extends Resource[A]
A Resource that can only be used once (e.g.
A Resource that can only be used once (e.g. reading an InputStream)
- class StacklessException extends Exception
- class StacklessThrowable extends Throwable
-
class
StringBuilderWriter extends org.apache.commons.io.output.StringBuilderWriter
This is just org.apache.commons.io.output.StringBuilderWriter
This is just org.apache.commons.io.output.StringBuilderWriter
This cannot be a Scala class because the ScalaSignature will contain a reference to org.apache.commons.io.output.StringBuilderWriter even though Proguard rewrites the name.
-
trait
StringEscapeUtilsBase extends AnyRef
- Attributes
- protected
- final class TaskRunner extends TaskRunnerBase
- abstract class TaskRunnerBase extends Closeable with Logging
-
class
TeeInputStream extends org.apache.commons.io.input.TeeInputStream
This is just org.apache.commons.io.input.TeeInputStream
This is just org.apache.commons.io.input.TeeInputStream
This cannot be a Scala class because the ScalaSignature will contain a reference to org.apache.commons.io.input.TeeInputStream even though Proguard rewrites the name.
-
class
TeeOutputStream extends org.apache.commons.io.output.TeeOutputStream
This is just org.apache.commons.io.output.TeeOutputStream
This is just org.apache.commons.io.output.TeeOutputStream
This cannot be a Scala class because the ScalaSignature will contain a reference to org.apache.commons.io.output.TeeOutputStream even though Proguard rewrites the name.
-
class
ThreadLocalHashMap[K, V] extends AnyRef
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.
- K
The HashMap Key
- V
The HashMap Value
- trait TraversableProxy[A] extends AnyRef
-
type
URI = java.net.URI
A type alias for java.net.URI
-
type
URL = java.net.URL
A type alias for java.net.URL
-
final
case class
UUID(timeAndCounter: Long, nodeIdAndRandom: Long) extends Ordered[UUID] with Product with Serializable
A custom UUID implementation (not to be confused with java.util.UUID or RFC4122 implementations) that allows natural sorting by timestamp based on the string or numeric representation.
A custom UUID implementation (not to be confused with java.util.UUID or RFC4122 implementations) that allows natural sorting by timestamp based on the string or numeric representation.
The UUID consists of 16 bytes (128 bits) broken up into 2 longs:
timeAndCounter: {6-Byte Millis since epoch}{2-Byte Counter} nodeIdAndRandom: {2-Byte Node ID}{6-Byte Random Number}
The "pretty" hex encoded representation is: {6-byte millis since epoch}-{2-byte-counter}-{2-byte-optional-node-id}-{4-byte-random}
Example: 015247f01787-9740-85e0-3e9672a8dfa2
-
abstract
class
UUIDFactory[T <: UUIDWrapper[T]] extends AnyRef
This goes along with the UUIDWrapper
This goes along with the UUIDWrapper
See documentation of UUIDWrapper for the intended usage of this class
-
trait
UUIDWrapper[T <: UUIDWrapper[T]] extends Ordered[T]
An UUID wrapper class that allow you to define custom types that represent an UUID.
An UUID wrapper class that allow you to define custom types that represent an UUID.
The intended usage pattern is something like:
object UserId extends UUIDFactory[UserId](new UserId(_)) final class UserId(val uuid: UUID) extends UUIDWrapper[UserId]
This allows you to then reference UserId instead of UUID and to have methods that take a strongly typed UserId instead of an UUID (which could represent something other than a User id)
Note: The class that extends this should also extends AnyVal so that serialization will just pass through to the underlying uuid
-
final
class
UncloseableInputStream extends FilterInputStream
Wraps an InputStream and makes the close() method do nothing
-
final
class
UncloseableOutputStream extends FilterOutputStream
Wraps an OutputStream and makes the close() method do nothing
- abstract class UserFriendlyException extends Exception
- sealed trait ValueEnum[ValueType <: AnyVal, EntryType <: ValueEnumEntry[ValueType]] extends AnyRef
-
sealed
trait
ValueEnumEntry[ValueType <: AnyVal] extends AnyRef
Created by Lloyd on 4/11/16.
Created by Lloyd on 4/11/16.
Copyright 2016
-
final
class
WeakObjectPool[T] extends AnyRef
DEPRECATED - Should use fm.common.Intern instead
DEPRECATED - Should use fm.common.Intern instead
An object pool based on a WeakHashMap (using weak key AND weak values) that can be used to return canonical versions of objects. Once all references to the object go away the WeakHashMap entry will be GC'd.
This is similar to how String.intern() works (although probably not as efficient)
- Annotations
- @Deprecated
Value Members
-
implicit
def
Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14], ord15: Ordering[T15]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14], ord15: Ordering[T15], ord16: Ordering[T16]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14], ord15: Ordering[T15], ord16: Ordering[T16], ord17: Ordering[T17]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14], ord15: Ordering[T15], ord16: Ordering[T16], ord17: Ordering[T17], ord18: Ordering[T18]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14], ord15: Ordering[T15], ord16: Ordering[T16], ord17: Ordering[T17], ord18: Ordering[T18], ord19: Ordering[T19]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)]
- Definition Classes
- OrderingImplicits
-
implicit
def
Tuple20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](implicit ord1: Ordering[T1], ord2: Ordering[T2], ord3: Ordering[T3], ord4: Ordering[T4], ord5: Ordering[T5], ord6: Ordering[T6], ord7: Ordering[T7], ord8: Ordering[T8], ord9: Ordering[T9], ord10: Ordering[T10], ord11: Ordering[T11], ord12: Ordering[T12], ord13: Ordering[T13], ord14: Ordering[T14], ord15: Ordering[T15], ord16: Ordering[T16], ord17: Ordering[T17], ord18: Ordering[T18], ord19: Ordering[T19], ord20: Ordering[T20]): Ordering[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)]
- Definition Classes
- OrderingImplicits
-
implicit
def
bigDecimalOrdering: Ordering[BigDecimal]
- Definition Classes
- ImplicitsBase
-
implicit
def
bigIntegerOrdering: Ordering[BigInteger]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichAnyRef[A <: AnyRef](ref: A): RichAnyRef[A]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichAtomicInteger(int: AtomicInteger): RichAtomicInteger
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichAtomicLong(long: AtomicLong): RichAtomicLong
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichAwait[V](await: Await.type): RichAwait
- Definition Classes
- Implicits
-
implicit
def
toRichBigDecimal(d: BigDecimal): RichBigDecimal
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichBigDecimal(d: BigDecimal): RichBigDecimal
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichBigInteger(i: BigInt): RichBigInteger
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichBigInteger(i: BigInteger): RichBigInteger
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichBooleanOption(opt: Option[Boolean]): RichBooleanOption
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichCharOption(opt: Option[Char]): RichCharOption
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichCharSequence(s: CharSequence): RichCharSequence
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichConcurrentMap[K, V](m: ConcurrentMap[K, V]): RichConcurrentMap[K, V]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichFile(f: File): RichFile
- Definition Classes
- Implicits
-
implicit
def
toRichFuture[V](f: Future[V]): RichFuture[V]
- Definition Classes
- Implicits
-
implicit
def
toRichImmutableArray[A](arr: ImmutableArray[A]): RichImmutableArray[A]
- Definition Classes
- Implicits
-
implicit
def
toRichIndexedSeq[T](t: IndexedSeq[T]): RichIndexedSeq[T]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichInputStream(is: InputStream): RichInputStream
- Definition Classes
- Implicits
-
implicit
def
toRichInstant(instant: Instant): RichInstant
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichIntOption(opt: Option[Int]): RichIntOption
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichJVMString(s: String): RichJVMString
- Definition Classes
- Implicits
-
implicit
def
toRichLocalDate(date: LocalDate): RichLocalDate
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichLocale(locale: Locale): RichLocale
- Definition Classes
- Implicits
-
implicit
def
toRichLongOption(opt: Option[Long]): RichLongOption
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichMap[A, B, This <: MapLike[A, B, This] with Map[A, B]](m: MapLike[A, B, This]): RichMap[A, B, This]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichOption[T](opt: Option[T]): RichOption[T]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichPath(p: Path): RichPath
- Definition Classes
- Implicits
-
implicit
def
toRichPattern(regex: Regex): RichRegex
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichPattern(pattern: Pattern): RichPattern
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichQueryParamsObject(obj: QueryParams.type): RichQueryParams.type
- Definition Classes
- Implicits
-
implicit
def
toRichString(s: String): RichString
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichStringOption(opt: Option[String]): RichStringOption
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichTraversableOnce[T](t: TraversableOnce[T]): RichTraversableOnce[T]
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichTry[T](t: Try[T]): RichTry[T]
- Definition Classes
- Implicits
-
implicit
def
toRichURI(uri: URI): RichURI
- Definition Classes
- ImplicitsBase
-
implicit
def
toRichURL(url: URL): RichURL
- Definition Classes
- Implicits
-
implicit
def
toTypeSafeEquals[L](left: L): TypeSafeEquals[L]
- Definition Classes
- ImplicitsBase
- object ASCIIUtil
- object ArrayUtils extends Logging
-
object
Base16 extends BaseEncoding
Hex (Base16) encoding/decoding
Hex (Base16) encoding/decoding
Note: encodes to lowercase by default but will decode both lower/upper case Hex.
-
object
Base32 extends BaseEncoding
Base32 encoding/decoding
Base32 encoding/decoding
Note: encodes to lowercase by default but will decode both lower/upper case Base32.
-
object
Base32Hex extends BaseEncoding
Base32Hex encoding/decoding
Base32Hex encoding/decoding
Note: encodes to lowercase by default but will decode both lower/upper case Base32.
-
object
Base58 extends BaseEncoding
Base58 is a way to encode Bitcoin addresses (or arbitrary data) as alphanumeric strings.
Base58 is a way to encode Bitcoin addresses (or arbitrary data) as alphanumeric strings.
Note that this is not the same base58 as used by Flickr, which you may find referenced around the Internet.
You may want to consider working with
PrefixedChecksummedBytes
instead, which adds support for testing the prefix and suffix bytes commonly found in addresses.Satoshi explains: why base-58 instead of standard base-64 encoding?
- Don't want 0OIl characters that look the same in some fonts and could be used to create visually identical looking account numbers.
- A string with non-alphanumeric characters is not as easily accepted as an account number.
- E-mail usually won't line-break if there's no punctuation to break at.
- Doubleclicking selects the whole number as one word if it's all alphanumeric.
However, note that the encoding/decoding runs in O(n²) time, so it is not useful for large data.
The basic idea of the encoding is to treat the data bytes as a large number represented using base-256 digits, convert the number to be represented using base-58 digits, preserve the exact number of leading zeros (which are otherwise lost during the mathematical operations on the numbers), and finally represent the resulting base-58 digits as alphanumeric ASCII characters.
-
object
Base64 extends BaseEncoding
Base64 encoding/decoding methods.
Base64 encoding/decoding methods.
Note: This will decode normal Base64 and the modified Base64 for URL variant. If you don't want this behavior then use Base64Strict or Base64URL directly.
- object Base64Strict extends BaseEncoding
- object Base64URL extends BaseEncoding
- object BaseEncoding
- object BitUtils
- object ByteBufferInputStream
- object ByteBufferUtil
-
object
Cache
Wrapper for Google Guava's Cache classes
-
object
ClassUtil extends Logging
This contains utility methods for scanning Classes or Files on the classpath.
This contains utility methods for scanning Classes or Files on the classpath.
Originally we used the classpath scanning functionality in the Spring Framework and then later switched to the Reflections library (https://code.google.com/p/reflections/) to avoid the dependency on Spring. At some point we ran into issues with the Reflections library not properly detecting classes so I ended up writing this as a replacement.
-
object
Crypto
NOTE: Use at your own risk.
NOTE: Use at your own risk. We make no claim that any of this Crypto code is correct.
-
object
DigestUtils
Simple Wrapper around org.apache.commons.codec.digest.DigestUtils
- object EmailSender extends Serializable
- object EnumEntry
- object EnumMacros
- object FileOutputStreamResource
- object FileUtil extends Logging
-
object
Hex
Deprecated.
Deprecated. Prefer the fm.common.Base16 object
- Annotations
- @Deprecated
-
object
IOUtils
Collection of IO Utilities.
Collection of IO Utilities. Some implemented via Apache Commons IO
-
object
IP
Helpers for parsing and working with IPv4 addresses
- object IPMap
- object IPMapImmutable
- object IPMapMutable
- object IPOrSubnet
- object IPSet
- object IPSetImmutable
- object IPSetMutable
- object IPSubnet extends Serializable
- object IPSubnets extends Serializable
- object ImmutableArray
- object ImmutableDate extends Serializable
- object Implicits extends Implicits
- object IndexedSeqProxy
- object InputStreamResource extends Serializable
- object IterableProxy
-
object
JavaConverters extends DecorateAsJava with DecorateAsScala
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
- object LoadingCache
- object Logger
-
object
Logging
This has SLF4J/Logback Helpers that depend on SLF4j/Logback
This has SLF4J/Logback Helpers that depend on SLF4j/Logback
TODO: Clean this up!!
- object MapProxy
- object MessageCrypto
- object MultiUseResource
- object Normalize
- object OrderingImplicits extends OrderingImplicits
- object OutputStreamResource extends Serializable
- object ProgressStats extends Serializable
- object QueryParams
- object ReloadableResource
- object Resource
- object ScheduledFuture
- object ScheduledTask
- object ScheduledTaskRunner extends Serializable
- object SeqProxy
-
object
Serializer
Implicits that go along with the Serializer trait
- object Service
- object SetProxy
- object SingleUseResource
- object Snappy
- object StringEscapeUtils extends StringEscapeUtilsBase
- object TaskRunner extends Logging
- object TaskRunnerBase extends Logging
- object TestHelpers
- object TraversableProxy
-
object
URI
Simple wrappers for the java.net.URI constructors
-
object
URL
Simple wrappers for the java.net.URL constructors
- object UUID extends Serializable
- object UUIDWrapper
- object UncloseableInputStream
- object UncloseableOutputStream
-
object
UnitResource extends Resource[Unit]
An empty resource
- object UserFriendlyException extends Serializable
- object Util extends Logging
- object ValueEnumMacros
- object XMLUtil