Deprecate ClassBasedPropertyBuilder
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / ClassBasedPropertyBuilder.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.concepts;
9
10 @Deprecated(since = "7.0.9", forRemoval = true)
11 public interface ClassBasedPropertyBuilder<P, T extends ClassBasedPropertyBuilder<P, T>> extends Builder<P> {
12     /**
13      * Sets a value of property uniquely identified by its
14      * class.
15      *
16      * @param <V> value type
17      * @param type Type of property to set
18      * @param value Value of property
19      * @return Builder instance
20      */
21     <V> T set(Class<V> type, V value);
22
23     /**
24      * Gets a value of property based on its type.
25      *
26      * @param <V> value type
27      * @param type Type of property to get
28      * @return Builder instance
29      */
30     <V> V get(Class<V> type);
31 }