/** * Construct a request task for a specified BasicWWTexture. * * @param wwTexture the texture object for which to construct the request task. */ protected RequestTask(LazilyLoadedTexture wwTexture) { if (wwTexture == null) { String message = Logging.getMessage("nullValue.TextureIsNull"); Logging.logger().severe(message); throw new ArgumentException(message); } this.wwTexture = wwTexture; }
public override bool Equals(Object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } LazilyLoadedTexture that = (LazilyLoadedTexture)o; //noinspection RedundantIfStatement if (imageSource != null ? !imageSource.Equals(that.imageSource) : that.imageSource != null) { return(false); } return(true); }