Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.jclouds.loadbalancer.domain.internal;
 
 import static com.google.common.base.Preconditions.checkNotNull;
 
 import java.net.URI;
 import java.util.Map;
 import java.util.Set;
 
 

Author(s):
Adrian Cole
 
The serialVersionUID
 
    private static final long serialVersionUID = 7374704415964898694L;
    private final String id;
    private final LoadBalancerType type;
    private final Set<Stringaddresses;
 
    public LoadBalancerMetadataImpl(LoadBalancerType typeString providerIdString nameString idLocation location,
          URI uriMap<StringStringuserMetadataIterable<Stringaddresses) {
       super(providerIdnamelocationuriuserMetadata);
       this. = checkNotNull(id"id");
       this. = checkNotNull(type"type");
       this. = ImmutableSet.copyOf(checkNotNull(addresses"addresses"));
    }

   
 
    @Override
    public LoadBalancerType getType() {
       return ;
    }

   
 
    @Override
    public String getId() {
       return ;
    }

   
 
    @Override
    public Set<StringgetAddresses() {
       return ;
    }
 
    @Override
    public int hashCode() {
       final int prime = 31;
       int result = super.hashCode();
       result = prime * result + (( == null) ? 0 : .hashCode());
       result = prime * result + (( == null) ? 0 : .hashCode());
       result = prime * result + (( == null) ? 0 : .hashCode());
       return result;
    }
 
    @Override
    public String toString() {
       return "[id=" +  + ", providerId=" + getProviderId() + ", name=" + getName() + ", location=" + getLocation()
             + ", uri=" + getUri() + ", userMetadata=" + getUserMetadata() + ", type=" +  + ", addresses="
             +  + "]";
    }
 
    @Override
    public boolean equals(Object obj) {
       if (this == obj)
          return true;
       if (!super.equals(obj))
          return false;
       if (getClass() != obj.getClass())
         return false;
      if ( == null) {
         if (other.addresses != null)
            return false;
      } else if (!.equals(other.addresses))
         return false;
      if ( == null) {
         if (other.id != null)
            return false;
      } else if (!.equals(other.id))
         return false;
      if ( != other.type)
         return false;
      return true;
   }
New to GrepCode? Check out our FAQ X