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

org.openurp.edu.lesson.model.GenderRatio.scala Maven / Gradle / Ivy

There is a newer version: 0.0.23
Show newest version
/*
 * OpenURP, Agile University Resource Planning Solution
 *
 * Copyright (c) 2014-2016, OpenURP Software.
 *
 * OpenURP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * OpenURP is distributed in the hope that it will be useful.
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with OpenURP.  If not, see .
 */
package org.openurp.edu.lesson.model

import org.beangle.commons.lang.annotation.value

object GenderRatio {
  val empty = new GenderRatio(0)
}
@value
class GenderRatio(val value: Short) extends Ordered[GenderRatio] with Serializable {
  override def compare(other: GenderRatio): Int = {
    if (this.value < other.value) -1
    else if (this.value == other.value) 0
    else 1
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy