@Test public void testRemoveHostComponentStateEntity() throws Exception { HostEntity hostEntity = new HostEntity(); HostComponentStateEntity stateEntity = new HostComponentStateEntity(); hostEntity.setHostComponentStateEntities(new HashSet<HostComponentStateEntity>()); Collection<HostComponentStateEntity> stateEntities = hostEntity.getHostComponentStateEntities(); assertTrue(stateEntities.isEmpty()); hostEntity.addHostComponentStateEntity(stateEntity); stateEntities = hostEntity.getHostComponentStateEntities(); assertTrue(stateEntities.contains(stateEntity)); hostEntity.removeHostComponentStateEntity(stateEntity); stateEntities = hostEntity.getHostComponentStateEntities(); assertFalse(stateEntities.contains(stateEntity)); }
public void removeHostComponentStateEntity(HostComponentStateEntity stateEntity) { hostComponentStateEntities.remove(stateEntity); }
HostEntity implements Comparable<HostEntity> { public void removeHostComponentStateEntity(HostComponentStateEntity stateEntity) { hostComponentStateEntities.remove(stateEntity); } }
HostEntity implements Comparable<HostEntity> { public void removeHostComponentStateEntity(HostComponentStateEntity stateEntity) { hostComponentStateEntities.remove(stateEntity); }  }
HostEntity implements Comparable<HostEntity> { public void removeHostComponentStateEntity(HostComponentStateEntity stateEntity) { hostComponentStateEntities.remove(stateEntity); }  Long getHostId(); void setHostId(Long hostId); String getHostName(); void setHostName(String hostName); String getIpv4(); void setIpv4(String ipv4); String getIpv6(); void setIpv6(String ipv6); String getPublicHostName(); void setPublicHostName(String name); Long getTotalMem(); void setTotalMem(Long totalMem); Integer getCpuCount(); void setCpuCount(Integer cpuCount); Integer getPhCpuCount(); void setPhCpuCount(Integer phCpuCount); String getCpuInfo(); void setCpuInfo(String cpuInfo); String getOsArch(); void setOsArch(String osArch); String getOsInfo(); void setOsInfo(String osInfo); String getOsType(); void setOsType(String osType); String getDiscoveryStatus(); void setDiscoveryStatus(String discoveryStatus); Long getLastRegistrationTime(); void setLastRegistrationTime(Long lastRegistrationTime); String getRackInfo(); void setRackInfo(String rackInfo); String getHostAttributes(); void setHostAttributes(String hostAttributes); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(HostEntity other); Collection<HostComponentDesiredStateEntity> getHostComponentDesiredStateEntities(); void addHostComponentDesiredStateEntity(HostComponentDesiredStateEntity stateEntity); void removeHostComponentDesiredStateEntity(HostComponentDesiredStateEntity stateEntity); void setHostComponentDesiredStateEntities(Collection<HostComponentDesiredStateEntity> hostComponentDesiredStateEntities); Collection<HostComponentStateEntity> getHostComponentStateEntities(); void addHostComponentStateEntity(HostComponentStateEntity stateEntity); void removeHostComponentStateEntity(HostComponentStateEntity stateEntity); void setHostComponentStateEntities(Collection<HostComponentStateEntity> hostComponentStateEntities); Collection<ClusterEntity> getClusterEntities(); void setClusterEntities(Collection<ClusterEntity> clusterEntities); HostStateEntity getHostStateEntity(); void setHostStateEntity(HostStateEntity hostStateEntity); Collection<HostRoleCommandEntity> getHostRoleCommandEntities(); void setHostRoleCommandEntities(Collection<HostRoleCommandEntity> hostRoleCommandEntities); Collection<HostVersionEntity> getHostVersionEntities(); void setHostVersionEntities(Collection<HostVersionEntity> hostVersionEntities); }
HostEntity implements Comparable<HostEntity> { public void removeHostComponentStateEntity(HostComponentStateEntity stateEntity) { hostComponentStateEntities.remove(stateEntity); }  Long getHostId(); void setHostId(Long hostId); String getHostName(); void setHostName(String hostName); String getIpv4(); void setIpv4(String ipv4); String getIpv6(); void setIpv6(String ipv6); String getPublicHostName(); void setPublicHostName(String name); Long getTotalMem(); void setTotalMem(Long totalMem); Integer getCpuCount(); void setCpuCount(Integer cpuCount); Integer getPhCpuCount(); void setPhCpuCount(Integer phCpuCount); String getCpuInfo(); void setCpuInfo(String cpuInfo); String getOsArch(); void setOsArch(String osArch); String getOsInfo(); void setOsInfo(String osInfo); String getOsType(); void setOsType(String osType); String getDiscoveryStatus(); void setDiscoveryStatus(String discoveryStatus); Long getLastRegistrationTime(); void setLastRegistrationTime(Long lastRegistrationTime); String getRackInfo(); void setRackInfo(String rackInfo); String getHostAttributes(); void setHostAttributes(String hostAttributes); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(HostEntity other); Collection<HostComponentDesiredStateEntity> getHostComponentDesiredStateEntities(); void addHostComponentDesiredStateEntity(HostComponentDesiredStateEntity stateEntity); void removeHostComponentDesiredStateEntity(HostComponentDesiredStateEntity stateEntity); void setHostComponentDesiredStateEntities(Collection<HostComponentDesiredStateEntity> hostComponentDesiredStateEntities); Collection<HostComponentStateEntity> getHostComponentStateEntities(); void addHostComponentStateEntity(HostComponentStateEntity stateEntity); void removeHostComponentStateEntity(HostComponentStateEntity stateEntity); void setHostComponentStateEntities(Collection<HostComponentStateEntity> hostComponentStateEntities); Collection<ClusterEntity> getClusterEntities(); void setClusterEntities(Collection<ClusterEntity> clusterEntities); HostStateEntity getHostStateEntity(); void setHostStateEntity(HostStateEntity hostStateEntity); Collection<HostRoleCommandEntity> getHostRoleCommandEntities(); void setHostRoleCommandEntities(Collection<HostRoleCommandEntity> hostRoleCommandEntities); Collection<HostVersionEntity> getHostVersionEntities(); void setHostVersionEntities(Collection<HostVersionEntity> hostVersionEntities); @Column(name="public_host_name", nullable = true, insertable = true, updatable = true)
  @Basic
  private String publicHostName; }