-/*\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();
+}
-/*\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();
+}
-/*\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 {
+
+}
+
-/*\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> {
+
+}
-/*\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>{
+
+}
-/*\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>> {
+
+}
-/*\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);
+}
-/*\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> {
+
+
+}
-/*\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);
+}