DataFlavor.equals(Object o) has the following syntax.
public boolean equals(Object o)
In the following code shows how to use DataFlavor.equals(Object o) method.
import java.awt.datatransfer.DataFlavor; // w ww.jav a 2 s. co m public class Main { public static void main(String[] args) { DataFlavor df = DataFlavor.stringFlavor; System.out.println (df.equals((Object)"string")); } }
The code above generates the following result.