The FormatFamilyBase instance to compare with the current instance.
Returns:
boolean - true if the specified FormatFamilyBase is equal to the current instance; otherwise, false .
toString()
public String toString()
Returns a string that represents the current object.
Returns:
java.lang.String - A string that represents the current object, which is the value of the Name property.
This method overrides object.ToString to return the Name property of the object.
getAll(Class clazz)
public static List<T> <T>getAll(Class<T> clazz)
Retrieves all instances of the specified type
T
that derive from FormatFamilyBase.
Parameters:
Parameter
Type
Description
clazz
java.lang.Class
Returns:
java.util.List - An enumerable collection of instances of the specified type T .
T
The type of format family.
equals(Object obj)
public boolean equals(Object obj)
Determines whether this instance is equal to the specified FormatFamilyBase instance.
Parameters:
Parameter
Type
Description
obj
java.lang.Object
The FormatFamilyBase instance to compare with the current instance.
Returns:
boolean - true if the specified FormatFamilyBase is equal to the current instance; otherwise, false .
hashCode()
public int hashCode()
Returns a hash code for the current object.
Returns:
int - A hash code for the current object, suitable for use in hashing algorithms and data structures like a hash table.
This method overrides object.GetHashCode . The hash code is computed using the object’s Id and Name properties. The unchecked context allows overflow, which is acceptable in a hash code calculation context.
fromValue(Class clazz, int value)
public static T <T>fromValue(Class<T> clazz, int value)
Retrieves an instance of the specified type
T
that has the specified identifier.
Parameters:
Parameter
Type
Description
clazz
java.lang.Class
value
int
The identifier of the format family.
T
The type of format family.
|
Returns:
T - An instance of the specified type T with the specified identifier.
fromName(Class clazz, String name)
public static T <T>fromName(Class<T> clazz, String name)
Retrieves an instance of the specified type
T
that has the specified name.
Parameters:
Parameter
Type
Description
clazz
java.lang.Class
name
java.lang.String
The name of the format family.
T
The type of format family.
|
Returns:
T - An instance of the specified type T with the specified name.