2 * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.model.util.type;
10 import com.google.common.collect.ImmutableList;
11 import java.util.List;
12 import org.opendaylight.yangtools.yang.model.api.type.BinaryTypeDefinition;
13 import org.opendaylight.yangtools.yang.model.api.type.LengthConstraint;
14 import org.opendaylight.yangtools.yang.model.util.BaseTypes;
16 final class BaseBinaryType extends AbstractBaseType<BinaryTypeDefinition> implements BinaryTypeDefinition {
17 static final BaseBinaryType INSTANCE = new BaseBinaryType();
19 private BaseBinaryType() {
20 super(BaseTypes.BINARY_QNAME);
24 public List<LengthConstraint> getLengthConstraints() {
25 return ImmutableList.of();
29 public int hashCode() {
30 return TypeDefinitions.hashCode(this);
34 public boolean equals(final Object obj) {
35 return TypeDefinitions.equals(this, obj);
39 public String toString() {
40 return TypeDefinitions.toString(this);