Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package net.datenstrudel.bulbs.shared.domain.model.client.bulb;
  
 
 import java.util.List;

Parameters:
<T>
Author(s):
Thomas Wendzinski
 
         subTypes = {DtoBulbActuatorCmd.classDtoActuationCancelCmd.classDtoGroupActuatorCmd.classDtoPresetActuatorCmd.class},
         discriminator = "type",
         description = "Abstract base command for bulb controls of any kind."
 )
 public abstract class DtoAbstractActuatorCmd<T extends DtoAbstractActuatorCmd>
         implements ValueObject<T>, Serializable{
 
     //~ Member(s) //////////////////////////////////////////////////////////////
     @NotNull
     @ApiModelProperty(required = true)
     protected String appId;
     @ApiModelProperty(required = false, allowableValues = "0,1")
     protected CommandPriority priority = CommandPriority.standard();
    
Contains a bunch of states that are applied sequentially. The time between two changes is defined in transitionDelay. The list must contain at least one element.
 
     @Size(min = 1)
     @ApiModelProperty(required = true)
     protected List<BulbStatestates;
     @ApiModelProperty(required = false)
     protected boolean loop = false;
 
     //~ Construction ///////////////////////////////////////////////////////////
     public DtoAbstractActuatorCmd() {
     }
     public DtoAbstractActuatorCmd(
             String appId,
             CommandPriority priority,
             List<BulbStatestates
             boolean loop) {
         this. = appId;
         this. = priority;
         this. = states;
         this. = loop;
     }
     
     //~ Method(s) //////////////////////////////////////////////////////////////
     

Returns:
Type discriminator that helps JSON deserializer to find specific type of DtoAbstractActuatorCmd
 
     public abstract String getType();
 
     public String getAppId() {
         return ;
     }
     public void setAppId(String appId) {
         this. = appId;
     }
 
     public CommandPriority getPriority() {
         return ;
     }
     public void setPriority(CommandPriority priority) {
         this. = priority;
     }
 
     public List<BulbStategetStates() {
         return ;
     }
     public void setStates(List<BulbStatestates) {
         this. = states;
     }
     
     public boolean isLoop() {
         return ;
     }
     public void setLoop(boolean loop) {
         this. = loop;
     }
 
     @Override
     public int hashCode() {
         int hash = 7;
         hash = 41 * hash + (this. != null ? this..hashCode() : 0);
         hash = 41 * hash + (this. != null ? this..hashCode() : 0);
        hash = 41 * hash + (this. != null ? this..hashCode() : 0);
        hash = 41 * hash + (this. ? 1 : 0 );
        return hash;
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if ( !(obj instanceof DtoAbstractActuatorCmd) ) {
            return false;
        }
        final DtoAbstractActuatorCmd<?> other = (DtoAbstractActuatorCmd<?>) obj;
        if (this. != other.appId && (this. == null || !this..equals(other.appId))) {
            return false;
        }
        if (this. != other.priority && (this. == null || !this..equals(other.priority))) {
            return false;
        }
        if (this. != other.states && (this. == null || !this..equals(other.states))) {
            return false;
        }
        if (this. != other.loop) {
            return false;
        }
        return true;
    }
    
    //~ Private Artifact(s) ////////////////////////////////////////////////////
    
New to GrepCode? Check out our FAQ X