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 com.tapptitude.mapgpx.gpx.mapbox; | |
import android.util.Log; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import com.google.android.gms.maps.model.UrlTileProvider; | |
public class MapBoxOnlineTileProvider extends UrlTileProvider { |
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 tree; | |
/** | |
* Dog Genealogy. | |
* Add a genealogy with representative dogs that existed in the history of dogkind. | |
* Written by Calin Gabriel. | |
* | |
*/ | |
public class Main { |
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 tree; | |
/** | |
* Dog Genealogy. | |
* Add a genealogy with representative dogs that existed in the history of dogkind. | |
* 0) Add ancestor of everyone. | |
* 1) list all dogs ( list ) | |
* 2) add child specie of given dog. ( create ) | |
* 3) list all children of given ( search ) | |
* |
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 domain.model; | |
/** | |
* Created by motan on 30.06.2015. | |
*/ | |
public class Dog { | |
@Override | |
public String toString() { | |
return "Dog{" + |
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 tree; | |
import domain.ChildrenOccupiedException; | |
import domain.Controller; | |
import domain.model.Dog; | |
import java.util.Scanner; | |
/** | |
* Created by motan on 29.06.2015. |
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 domain; | |
import domain.model.Dog; | |
import tree.BinaryTree; | |
/** | |
* Created by motan on 30.06.2015. | |
*/ | |
public class Controller { | |
private BinaryTree<Dog> dogs; |
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 test; | |
import domain.ChildrenOccupiedException; | |
import domain.Controller; | |
import junit.framework.TestCase; | |
import org.junit.Test; | |
import tree.BinaryTree; | |
import java.util.Iterator; |
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 tree; | |
import java.util.Iterator; | |
import java.util.Stack; | |
/** | |
* BinaryTree implementation. | |
*/ | |
public class BinaryTree<T> implements Iterable<BinaryTree<T>>{ | |
private TreeNode<T> root; |
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 tree; | |
/** | |
* Created by motan on 27.06.2015. | |
*/ | |
public class TreeNode<T> { | |
public T data; | |
public BinaryTree<T> leftTree, rightTree; |
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 domain.Dog; | |
import java.util.Scanner; | |
public class Main { | |
private static Scanner scanner; | |
private static BinarySearchTree<Dog> doggies; | |
/** |