Author: simonetripodi
Date: Fri Sep 23 13:40:57 2011
New Revision: 1174754

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

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

Added: labs/openelo/src/main/java/org/apache/openelo/PlayersCatalog.java
URL: 
http://svn.apache.org/viewvc/labs/openelo/src/main/java/org/apache/openelo/PlayersCatalog.java?rev=1174754&view=auto
==============================================================================
--- labs/openelo/src/main/java/org/apache/openelo/PlayersCatalog.java (added)
+++ labs/openelo/src/main/java/org/apache/openelo/PlayersCatalog.java Fri Sep 
23 13:40:57 2011
@@ -0,0 +1,43 @@
+package org.apache.openelo;
+
+/*
+ * 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.
+ */
+
+/**
+ * A {@code PlayersCatalog} stores and retrieves {@link Player} instances.
+ */
+public interface PlayersCatalog<I>
+{
+
+    /**
+     * Add a new {@link Player} in the catalog.
+     *
+     * @param player the {@link Player} has to be added
+     */
+    void addPlayer( Player<I> player );
+
+    /**
+     * Retrieves a {@link Player} given the input identifier, if any.
+     *
+     * @param identifier the {@link Player} identifier
+     * @return the related {@link Player} if found in the catalog, {@code 
null} otherwise
+     */
+    Player<I> getPlayer( I identifier );
+
+}

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

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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to