This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Node struct { | |
sig chan int | |
str string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"sync" | |
"fmt" | |
) | |
var ( | |
num = 10 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"reflect" | |
"fmt" | |
) | |
type Cloneable interface { | |
Clone(inter interface{}) interface{} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AnnotationUtils { | |
/** | |
* Add annotation to the entity class | |
* @param clazz Entity's class | |
* @param annotationClazz Annotation's class | |
* @param annotation New Annotation | |
*/ | |
public static void addAnnotation(Class clazz, Class annotationClazz, Annotation annotation) { | |
clazz.getAnnotations(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.utils.TestSwitch.Fruit.*; | |
/** | |
* Created by Pelin on 17/2/20. | |
*/ | |
public class TestSwitch { | |
enum Fruit { | |
APPLE, BANANA, POTATO | |
} |