Updating fix for bug 3989 based on discussion in OVSDB meeting
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / notation / json / UUIDStringConverter.java
1 /*
2  * Copyright (c) 2013, 2015 Red Hat, 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
9 package org.opendaylight.ovsdb.lib.notation.json;
10
11 import com.fasterxml.jackson.databind.util.StdConverter;
12
13 import org.opendaylight.ovsdb.lib.notation.UUID;
14
15 public class UUIDStringConverter extends StdConverter<String, UUID> {
16
17     @Override
18     public UUID convert(String value) {
19         return new UUID(value);
20     }
21
22 }