1 package cz.cuni.amis.pogamut.multi.communication.worldview.property; 2 3 import cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId; 4 import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation; 5 import cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty; 6 7 public class LongProperty extends AbstractSharedProperty<Long> { 8 9 public LongProperty(WorldObjectId objId, String identifier, Long value, Class compositeClass) 10 { 11 super(objId, identifier, value, compositeClass); 12 } 13 14 public LongProperty( LongProperty other ) 15 { 16 super( other ); 17 18 } 19 20 @Override 21 public Class<?> getPropertyValueClass() { 22 return Long.class; 23 } 24 25 @Override 26 protected Long cloneValue() { 27 return value.longValue(); 28 } 29 30 @Override 31 public ISharedProperty<Long> clone() { 32 if (this.value == null) return null; 33 return new LongProperty(this); 34 } 35 36 }