public class QCharset extends Object implements Comparable
Constructor and Description |
---|
QCharset(String name) |
QCharset(String name,
float q)
Construct a
QCharset object. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o1)
Returns
1 if o1 's q value is higher. |
boolean |
equals(Object o1) |
String |
getName() |
float |
getQFactor() |
String |
toString() |
public QCharset(String name, float q)
QCharset
object.name
- Name of the charset.q
- Q factor to express preference. 0.0 < q < 1.0.
Constructs new QCharset
set object with charset
name and q value.public QCharset(String name)
name
- -
Name of the charset Constructs new QCharset set object with
charset name and q =1.0public String getName()
public float getQFactor()
public int compareTo(Object o1)
1
if o1
's q value is higher.
Returns -1
if o1
's q value is lower.
Returns 0
if o1
's q value is the same.compareTo
in interface Comparable
o1
- QCharset
type object.-1,0,1
based on q value.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.