@Override public void removeAttribute(AttributeSensor<?> attribute) { attributesInternal.remove(attribute); entityType.removeSensor(attribute); }
/** * Removes the named {@link Sensor} from this entity. */ public boolean removeSensor(Sensor<?> sensor) { return (removeSensor(sensor.getName()) != null); }