-
-
Constructor Summary
Constructors
Constructor |
Description |
Type(String name,
String extension) |
Constructs a file type.
|
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Indicates whether the specified object is equal to this file type,
returning true if the objects are equal.
|
String |
getExtension() |
Obtains the common file name extension for this file type.
|
int |
hashCode() |
Returns a hash code value for this file type.
|
String |
toString() |
Provides the file type's name as the String representation of
the file type.
|
-
-
Method Detail
-
equals
public final boolean equals(Object obj)
Indicates whether the specified object is equal to this file type,
returning true
if the objects are equal.
- Overrides:
equals
in class Object
- Parameters:
obj
- the reference object with which to compare
- Returns:
true
if the specified object is equal to this file
type; false
otherwise
- See Also:
Object.hashCode()
,
HashMap