public class Enclosure extends Object implements Cloneable, Serializable
Constructor and Description |
---|
Enclosure() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
long |
getLength()
Returns the enclosure length.
|
String |
getType()
Returns the enclosure type.
|
String |
getUrl()
Returns the enclosure URL.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setLength(long length)
Sets the enclosure length.
|
void |
setType(String type)
Sets the enclosure type.
|
void |
setUrl(String url)
Sets the enclosure URL.
|
String |
toString()
Returns the String representation for the object.
|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(Object other)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public String getUrl()
public void setUrl(String url)
url
- the enclosure URL to set, null if none.public long getLength()
public void setLength(long length)
length
- the enclosure length to set, 0 if none.public String getType()
public void setType(String type)
type
- the enclosure type to set, null if none.Copyright © 2022. All rights reserved.