Java DataFlavor.equals(Object o)

Syntax

DataFlavor.equals(Object o) has the following syntax.

public boolean equals(Object o)

Example

In the following code shows how to use DataFlavor.equals(Object o) method.


import java.awt.datatransfer.DataFlavor;
// w w  w. j  a v a 2s  .c  o m
public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;
    System.out.println (df.equals((Object)"string"));
  }
}




















Home »
  Java Tutorial »
    java.awt.datatransfer »




Clipboard
ClipboardOwner
DataFlavor
Transferable