/* * Copyright (c) 2015 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.yang.data.impl.codec; import org.opendaylight.yangtools.yang.common.Uint32; import org.opendaylight.yangtools.yang.data.api.codec.Uint32Codec; import org.opendaylight.yangtools.yang.model.api.type.Uint32TypeDefinition; final class Uint32StringCodec extends AbstractIntegerStringCodec implements Uint32Codec { Uint32StringCodec(final Uint32TypeDefinition typeDef) { super(typeDef, extractRange(typeDef), Uint32.class); } @Override protected Uint32 deserialize(final String stringRepresentation, final int base) { return Uint32.valueOf(stringRepresentation, base); } }