You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2011/09/09 17:09:16 UTC

svn commit: r1167240 - /labs/openelo/src/main/java/org/apache/openelo/Category.java

Author: simonetripodi
Date: Fri Sep  9 15:09:15 2011
New Revision: 1167240

URL: http://svn.apache.org/viewvc?rev=1167240&view=rev
Log:
first checkin of Category interface

Added:
    labs/openelo/src/main/java/org/apache/openelo/Category.java   (with props)

Added: labs/openelo/src/main/java/org/apache/openelo/Category.java
URL: http://svn.apache.org/viewvc/labs/openelo/src/main/java/org/apache/openelo/Category.java?rev=1167240&view=auto
==============================================================================
--- labs/openelo/src/main/java/org/apache/openelo/Category.java (added)
+++ labs/openelo/src/main/java/org/apache/openelo/Category.java Fri Sep  9 15:09:15 2011
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.openelo;
+
+/**
+ * A category is used for classification of players.
+ *
+ * @param <N> the ranking type
+ */
+public interface Category<N extends Number>
+{
+
+    /**
+     * Returns the category minimum points.
+     *
+     * @return the category minimum points.
+     */
+    N getMinimum();
+
+    /**
+     * Returns the category maximum points.
+     *
+     * @return the category maximum points.
+     */
+    N getMaximum();
+
+    /**
+     * Returns the category name.
+     *
+     * @return the category name.
+     */
+    String getName();
+
+}

Propchange: labs/openelo/src/main/java/org/apache/openelo/Category.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: labs/openelo/src/main/java/org/apache/openelo/Category.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: labs/openelo/src/main/java/org/apache/openelo/Category.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org