Fix for Bug 511 (concepts) 59/5659/1
authorMartin Vitez <mvitez@cisco.com>
Tue, 18 Mar 2014 08:13:39 +0000 (09:13 +0100)
committerMartin Vitez <mvitez@cisco.com>
Tue, 18 Mar 2014 08:13:39 +0000 (09:13 +0100)
Removed \r characters from concepts.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/Identifiable.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/Identifier.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/Immutable.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/Mutable.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/MutationBehaviour.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/Namespace.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/OrderedSet.java
concepts/src/main/java/org/opendaylight/yangtools/concepts/Path.java

index 81d178144d50e9272e2c50c6d377498888929281..affc25b7713f98c759d06b45ef5c53275074f69f 100644 (file)
@@ -1,28 +1,28 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-/**\r
- * Builder object which produces a product.\r
- * \r
- * @param <P> Product of builder\r
- * \r
- * @author Tony Tkacik <ttkacik@cisco.com>\r
- */\r
-public interface Builder<P> extends Mutable {\r
-    \r
-    /**\r
-     * Returns instance of the product.\r
-     * \r
-     * Multiple calls to this method are not required to return\r
-     * same instance if the state of the builder was changed.\r
-     * \r
-     * @return\r
-     */\r
-    P toInstance();\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+/**
+ * Builder object which produces a product.
+ * 
+ * @param <P> Product of builder
+ * 
+ * @author Tony Tkacik <ttkacik@cisco.com>
+ */
+public interface Builder<P> extends Mutable {
+    
+    /**
+     * Returns instance of the product.
+     * 
+     * Multiple calls to this method are not required to return
+     * same instance if the state of the builder was changed.
+     * 
+     * @return
+     */
+    P toInstance();
+}
index cc552a5b70f9a3ff1707f6185a9b2d09d425b7c9..b2c3c21f80d3a19c04cc5db2f5ecaa69ee2b819e 100644 (file)
@@ -1,13 +1,13 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-public interface Identifiable<T> {\r
-    \r
-    T getIdentifier();\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+public interface Identifiable<T> {
+    
+    T getIdentifier();
+}
index 715e798a8d227406b3ef57e49b6fd54cbf589e89..148865b850cec84120517d8a6451e66072b6d441 100644 (file)
@@ -1,21 +1,21 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-import java.io.Serializable;\r
-\r
-/**\r
- * General identifier interface. It is primarily a marker for all things that\r
- * identify concepts -- such as names, addresses, classes, etc. We do not\r
- * require too much, just that the identifiers are serializable (and this\r
- * transferable).\r
- */\r
-public interface Identifier extends Serializable, Immutable {\r
-\r
-}\r
-\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+import java.io.Serializable;
+
+/**
+ * General identifier interface. It is primarily a marker for all things that
+ * identify concepts -- such as names, addresses, classes, etc. We do not
+ * require too much, just that the identifiers are serializable (and this
+ * transferable).
+ */
+public interface Identifier extends Serializable, Immutable {
+
+}
+
index 323683885d91fe5b15affb127c9705fcfe060fd3..1339979982903a09ae1d16ce501ee94ebba10aa9 100644 (file)
@@ -1,42 +1,42 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-/**\r
- * Immutable Object - object does not change its state during lifecycle.\r
- * \r
- * <p>\r
- * Marker interface for objects which are immutable. This interface should be\r
- * used directly on objects, preferably final, which are eligible for the\r
- * JSR-305 @Immutable annotation and objects implementing this interface are\r
- * required to abide to interface contract specified by @Immutable. \r
- * \r
- * <p>The reason for the existence of this interface is twofold: \r
- * unlike @Immutable, it is\r
- * visible at runtime and objects can be quickly checked for compliance using a\r
- * quick 'instanceof' check. This is useful for code which needs to capture a\r
- * point-in-time snapshot of otherwise unknown objects -- a typical example\r
- * being logging/tracing systems. Such systems would normally have to rely on\r
- * serializing the object to get a stable checkpoint. Objects marked with this\r
- * interface are guaranteed to remain stable, thus already being a checkpoint\r
- * for all intents and purposes, so aside from retaining a reference no further\r
- * action on them is necessary.\r
- * \r
- * Implementations of this interface must not change any public state during\r
- * their whole lifecycle.\r
- * \r
- * This interface is mutually exclusive with {@link Mutable} and other\r
- * {@link MutationBehaviour}s.\r
- * \r
- * @author Robert Varga <rovarga@cisco.com>\r
- * @author Tony Tkacik <ttkacik@cisco.com>\r
- * \r
- */\r
-public interface Immutable extends MutationBehaviour<Immutable> {\r
-\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+/**
+ * Immutable Object - object does not change its state during lifecycle.
+ * 
+ * <p>
+ * Marker interface for objects which are immutable. This interface should be
+ * used directly on objects, preferably final, which are eligible for the
+ * JSR-305 @Immutable annotation and objects implementing this interface are
+ * required to abide to interface contract specified by @Immutable. 
+ * 
+ * <p>The reason for the existence of this interface is twofold: 
+ * unlike @Immutable, it is
+ * visible at runtime and objects can be quickly checked for compliance using a
+ * quick 'instanceof' check. This is useful for code which needs to capture a
+ * point-in-time snapshot of otherwise unknown objects -- a typical example
+ * being logging/tracing systems. Such systems would normally have to rely on
+ * serializing the object to get a stable checkpoint. Objects marked with this
+ * interface are guaranteed to remain stable, thus already being a checkpoint
+ * for all intents and purposes, so aside from retaining a reference no further
+ * action on them is necessary.
+ * 
+ * Implementations of this interface must not change any public state during
+ * their whole lifecycle.
+ * 
+ * This interface is mutually exclusive with {@link Mutable} and other
+ * {@link MutationBehaviour}s.
+ * 
+ * @author Robert Varga <rovarga@cisco.com>
+ * @author Tony Tkacik <ttkacik@cisco.com>
+ * 
+ */
+public interface Immutable extends MutationBehaviour<Immutable> {
+
+}
index 40266a09473a18d00b3759d439b4d3a7dcab5159..60c10352df54531df49221d6f312319d99b9f6bc 100644 (file)
@@ -1,21 +1,21 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-/**\r
- * Mutable object - object may change it's state during lifecycle.\r
- * \r
- * This interface is mutually exclusive with {@link Immutable}  and other\r
- * {@link MutationBehaviour}s.\r
- * \r
- * @author Tony Tkacik <ttkacik@cisco.com>\r
- *\r
- */\r
-public interface Mutable extends MutationBehaviour<Mutable>{\r
-    \r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+/**
+ * Mutable object - object may change it's state during lifecycle.
+ * 
+ * This interface is mutually exclusive with {@link Immutable}  and other
+ * {@link MutationBehaviour}s.
+ * 
+ * @author Tony Tkacik <ttkacik@cisco.com>
+ *
+ */
+public interface Mutable extends MutationBehaviour<Mutable>{
+    
+}
index 95d844d506eb75ffc719102a90e59f8f537acf7a..5aeec70bd872bab5e9447649a1e5fe2388839790 100644 (file)
@@ -1,22 +1,22 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-/**\r
- * Mutation behavior\r
- * \r
- * This interface is used to prevent same class extends multiple types of MutationBehaviour\r
- * such as {@link Immutable} and {@link Mutable} which are mutually exclusive.\r
- * \r
- * @author Tony Tkacik <ttkacik@cisco.com>\r
- *\r
- * @param <T> Mutation Type\r
- */\r
-public interface MutationBehaviour<T extends MutationBehaviour<T>> {\r
-\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+/**
+ * Mutation behavior
+ * 
+ * This interface is used to prevent same class extends multiple types of MutationBehaviour
+ * such as {@link Immutable} and {@link Mutable} which are mutually exclusive.
+ * 
+ * @author Tony Tkacik <ttkacik@cisco.com>
+ *
+ * @param <T> Mutation Type
+ */
+public interface MutationBehaviour<T extends MutationBehaviour<T>> {
+
+}
index b351fa6a3c93e325f3c788aa2ec9fe5c670c2670..e08571cc30b469b4b5498a12522be461a718320a 100644 (file)
@@ -1,19 +1,19 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-import java.util.Set;\r
-\r
-public interface Namespace<K,V> {\r
-    \r
-    V get(K key);\r
-    \r
-    Namespace<K,V> getParent();\r
-    Set<Namespace<K,V>> getSubnamespaces();\r
-    Namespace<K,V> getSubnamespace(V key);\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+import java.util.Set;
+
+public interface Namespace<K,V> {
+    
+    V get(K key);
+    
+    Namespace<K,V> getParent();
+    Set<Namespace<K,V>> getSubnamespaces();
+    Namespace<K,V> getSubnamespace(V key);
+}
index d6747749dc2f28522b64d2d2f70992e181bd330b..0af6366e87c5e16fb61162251660c207edc6fd68 100644 (file)
@@ -1,16 +1,16 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-import java.util.List;\r
-import java.util.Set;\r
-\r
-\r
-public interface OrderedSet<E> extends Set<E>,List<E> {\r
-\r
-    \r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+import java.util.List;
+import java.util.Set;
+
+
+public interface OrderedSet<E> extends Set<E>,List<E> {
+
+    
+}
index 1da31e858ba6c31e782bd81d99954b623a3815fd..d73326432d5f97eb6d2279e91de3b9c80cc7fd5d 100644 (file)
@@ -1,13 +1,13 @@
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.yangtools.concepts;\r
-\r
-public interface Path<P extends Path<P>> {\r
-\r
-    boolean contains(P other);\r
-}\r
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+public interface Path<P extends Path<P>> {
+
+    boolean contains(P other);
+}