Core

Classes and utilities shared between Scala and Scala.js (API Documentation)

Usage

sbt
libraryDependencies += "com.kyleu" %% "projectile-lib-core" % "1.10.4"
Maven
<dependency>
  <groupId>com.kyleu</groupId>
  <artifactId>projectile-lib-core_2.12</artifactId>
  <version>1.10.4</version>
</dependency>
Gradle
dependencies {
  compile group: 'com.kyleu', name: 'projectile-lib-core_2.12', version: '1.10.4'
}

(Or, use “%%%” for Scala.js and cross-built projects)

Classes

BaseResult

Wrapper case class used for search results

Tag

A simple key and value case class, used where unordered maps aren’t appropriate

DateUtils

Provides ordering, formatting, and common utilities for Local and Zoned java.time date classes

JsonSerializers

Provides all the imports and utility methods you need to work with Circe using dates, uuids, enums and sealed traits

NullUtils

Rather than use null references in your code, NullUtils is provided for common operations and values involving nulls

NumberUtils

Currently only provides a cross-platform method for formatting numbers

StringUtils

Exposes a method to split a string to an ordered sequence of lines

UuidUtils

Utility methods to transform a java.util.UUID to and from a sequence of bytes