File: MyClass4Format.java

package info (click to toggle)
libjibx1.2-java 1.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,260 kB
  • sloc: java: 75,013; xml: 14,068; makefile: 17
file content (13 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13

package simple;

class MyClass4Format
{
    /*package*/ static String yesNoSerializer(boolean flag) {
        return flag ? "yes" : "no";
    }
    
    /*package*/ static boolean yesNoDeserializer(String text) {
        return "yes".equals(text);
    }
}