@Contract @Singleton public abstract class ArchiveType extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ArchiveType(String value)
Same as calling #ArchiveType(String, String) with an empty string as extension.
|
protected |
ArchiveType(String value,
String extension)
Ensure a correct value is passed as that's what is returned by
toString() which is sometimes used during
comparison as some old APIs like ArchiveHandler.getArchiveType() use String. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getExtension()
Return the file extension string for this module type.
|
int |
hashCode() |
String |
toString() |
protected ArchiveType(String value, String extension)
toString() which is sometimes used during
comparison as some old APIs like ArchiveHandler.getArchiveType() use String.value - value of this archive type as reported in toString()extension - file extension for this type of archiveprotected ArchiveType(String value)
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.