std_msgs.msg.dds.Empty Maven / Gradle / Ivy
package std_msgs.msg.dds;
import us.ihmc.communication.packets.Packet;
import us.ihmc.euclid.interfaces.Settable;
import us.ihmc.euclid.interfaces.EpsilonComparable;
import java.util.function.Supplier;
import us.ihmc.pubsub.TopicDataType;
public class Empty extends Packet implements Settable, EpsilonComparable
{
public boolean unused_placeholder_field_;
public Empty()
{
}
public Empty(Empty other)
{
this();
set(other);
}
public void set(Empty other)
{
unused_placeholder_field_ = other.unused_placeholder_field_;
}
public void setUnusedPlaceholderField(boolean unused_placeholder_field)
{
unused_placeholder_field_ = unused_placeholder_field;
}
public boolean getUnusedPlaceholderField()
{
return unused_placeholder_field_;
}
public static Supplier getPubSubType()
{
return EmptyPubSubType::new;
}
@Override
public Supplier getPubSubTypePacket()
{
return EmptyPubSubType::new;
}
@Override
public boolean epsilonEquals(Empty other, double epsilon)
{
if(other == null) return false;
if(other == this) return true;
if (!us.ihmc.idl.IDLTools.epsilonEqualsBoolean(this.unused_placeholder_field_, other.unused_placeholder_field_, epsilon)) return false;
return true;
}
@Override
public boolean equals(Object other)
{
if(other == null) return false;
if(other == this) return true;
if(!(other instanceof Empty)) return false;
Empty otherMyClass = (Empty) other;
if(this.unused_placeholder_field_ != otherMyClass.unused_placeholder_field_) return false;
return true;
}
@Override
public java.lang.String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("Empty {");
builder.append("unused_placeholder_field=");
builder.append(this.unused_placeholder_field_);
builder.append("}");
return builder.toString();
}
}