All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.parameter.StringValue Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.parameter;

import org.yamcs.protobuf.Yamcs.Value.Type;

public class StringValue extends Value {
   final  String v;
    
    public StringValue(String v) {
        this.v = v;
    }

    @Override
    public Type getType() {
        return Type.STRING;
    }
    
    @Override
    public String getStringValue() {
        return v;
    }
    
    @Override
    public int hashCode() {
        return v.hashCode();
    }
    
    public boolean equals(Object obj) {
        if (obj instanceof StringValue) {
            return v.equals(((StringValue)obj).v);
        }
        return false;
    }
    
    @Override
    public String toString() {
        return v;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy