public class AttachmentStatus extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static AttachmentStatus |
MARKED_FOR_DELETION
The note of the attachment has been deleted or will be.
|
static AttachmentStatus |
PUBLISHED
The attachment has been published and assigned to a note.
|
static AttachmentStatus |
UPLOADED
The attachment has been uploaded but not assigned to a note yet.
|
Modifier | Constructor and Description |
---|---|
protected |
AttachmentStatus()
The default constructor allowing super classes to access it.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object that) |
boolean |
equals(Object object) |
static AttachmentStatus |
fromString(String value)
Creates an instance of AttachmentStatus from
value . |
String |
getValue()
Gets the underlying value of this type safe enumeration.
|
int |
hashCode() |
static List<String> |
literals()
Returns an unmodifiable list containing the literals that are known by this enumeration.
|
static List<String> |
names()
Returns an unmodifiable list containing the names of the literals that are known by this
enumeration.
|
String |
toString() |
public static final AttachmentStatus UPLOADED
The attachment has been uploaded but not assigned to a note yet.
public static final AttachmentStatus PUBLISHED
The attachment has been published and assigned to a note.
public static final AttachmentStatus MARKED_FOR_DELETION
The note of the attachment has been deleted or will be. Have this attachment and the associated file be deleted as well.
protected AttachmentStatus()
public static AttachmentStatus fromString(String value)
value
.value
- the value to create the AttachmentStatus from.public static List<String> literals()
public static List<String> names()
public int compareTo(Object that)
Comparable.compareTo(Object)
public boolean equals(Object object)
equals
in class Object
Object.equals(Object)
public String getValue()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019 Communote team. All rights reserved.