The official docs are actually useful now, so refer to those for up-to-date information.
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
| // use regular Java imports: Kotlin is 100% compatible to Java | |
| import org.jgrapht.DirectedGraph | |
| import org.jgrapht.Graph | |
| import org.jgrapht.graph.SimpleDirectedGraph | |
| /** | |
| * A class defining an Edge in the Graph. The `val`s are automatically accessible via getters. | |
| * Additionally, the annotation `data`automatically generates equals(), hashcode() and more. | |
| */ | |
| data class Edge(val source: String, val target: String, val duration: Int) |
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
| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/is intended for code that can run as-issrc/is intended for code that needs to be manipulated before it can be used
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
| /* basic usage */ | |
| ViewGroup root = (ViewGroup) findViewById(android.R.id.content); | |
| LayoutTraverser.build(new LayoutTraverser.Processor() { | |
| @Override | |
| public void process(View view) { | |
| // do stuff with the view | |
| } | |
| }).traverse(root); |
NewerOlder