/* * 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.yang.model.api.type; import com.google.common.collect.RangeSet; import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.yang.model.api.ConstraintMetaDefinition; /** * A single value range restriction, as expressed by a range statement, as specified by * [RFC-6020] The range Statement. */ public interface RangeConstraint> extends ConstraintMetaDefinition { /** * Return allowed length ranges. Returned RangeSet must not be empty. * * @return Set of allowed lengths. */ RangeSet<@NonNull T> getAllowedRanges(); }