blob: c091d9881fb0f5f542c0d59217fd8f7b6bca5030 [file] [log] [blame]
Madan Jampanie17d3282016-02-03 15:30:57 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Madan Jampanie17d3282016-02-03 15:30:57 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.store.primitives;
17
Madan Jampanie17d3282016-02-03 15:30:57 -080018import org.onosproject.store.service.DistributedPrimitive;
Madan Jampanie17d3282016-02-03 15:30:57 -080019
20/**
21 * Abstract builder for distributed primitives.
22 *
23 * @param <T> distributed primitive type
24 */
Jordan Halterman2c045992018-03-20 21:33:00 -070025public interface DistributedPrimitiveBuilder<T extends DistributedPrimitive> {
Madan Jampanie17d3282016-02-03 15:30:57 -080026
27 /**
28 * Constructs an instance of the distributed primitive.
29 * @return distributed primitive
30 */
Jordan Halterman2c045992018-03-20 21:33:00 -070031 T build();
Madan Jampanie17d3282016-02-03 15:30:57 -080032}