+++ /dev/null
-/*
- * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.mdsal.binding.javav2.dom.codec.generator.impl;
-
-import static java.util.Objects.requireNonNull;
-
-import com.google.common.annotations.Beta;
-
-/**
- * Definition of static property for Binding objects.
- *
- * <p>
- * This definition consists of
- * <ul>
- * <li>name - property name</li>
- * <li>type - Java type for property</li>
- * <li>value - value to which property should be initialized</li>
- * </ul>
- */
-@Beta
-public class StaticBindingProperty {
-
- private final String name;
- private final Class<?> type;
- private final Object value;
-
- public StaticBindingProperty(final String name, final Class<?> type, final Object value) {
- this.name = requireNonNull(name);
- this.type = requireNonNull(type);
- this.value = requireNonNull(value);
- }
-
- public String getName() {
- return this.name;
- }
-
- public Class<?> getType() {
- return this.type;
- }
-
- public Object getValue() {
- return this.value;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + this.name.hashCode();
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final StaticBindingProperty other = (StaticBindingProperty) obj;
- if (!this.name.equals(other.name)) {
- return false;
- }
- return true;
- }
-}