blob: 00bd0e70a6b9894893a7749c303eb8941b2ba9b0 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package io.v.v23.vdl;
import java.io.Serializable;
/**
* VdlField represents a struct or union field in a VDL type.
*/
public final class VdlField implements Serializable {
private static final long serialVersionUID = 1L;
private final String name;
private final VdlType type;
public VdlField(String name, VdlType type) {
this.name = name;
this.type = type;
}
public String getName() {
return name;
}
public VdlType getType() {
return type;
}
}