All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.pocketbyte.locolaser.resource.entity.Quantity.kt Maven / Gradle / Ivy

/*
 * Copyright © 2017 Denis Shurygin. All rights reserved.
 * Licensed under the Apache License, Version 2.0
 */

package ru.pocketbyte.locolaser.resource.entity

/**
 * @author Denis Shurygin
 */
enum class Quantity {

    ZERO, ONE, TWO, FEW, MANY, OTHER;

    companion object {
        val QUANTITY_OTHER: Set = setOf(OTHER)
    }

    override fun toString(): String {
        return when (this) {
            ZERO -> "zero"
            ONE -> "one"
            TWO -> "two"
            FEW -> "few"
            MANY -> "many"
            else -> "other"
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy