smac89 / safeenum

Safely get the value of an Enum without the hassle of handling exceptions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SafeEnum

Installation

build.gradle

plugins {
  id "com.github.smac89.aspectj" version "0.1.2" // Or any plugin for aspects
}

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    compileOnly 'com.github.smac89:safeenum:v0.3.0'
}

Usage

See the tests

About

Safely get the value of an Enum without the hassle of handling exceptions

License:MIT License


Languages

Language:Java 100.0%