Skip to content

Instantly share code, notes, and snippets.

@illuzor
Created August 16, 2015 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illuzor/39a007afa1f19b982e28 to your computer and use it in GitHub Desktop.
Save illuzor/39a007afa1f19b982e28 to your computer and use it in GitHub Desktop.
package com.illuzor.antbuilddemo.interfaces {
public interface IGenerator {
function getText():String;
}
}
package com.illuzor.antbuilddemo.generators {
import com.illuzor.antbuilddemo.interfaces.IGenerator;
public class AndroidTextGenerator implements IGenerator {
/* INTERFACE com.illuzor.antbuilddemo.interfaces.IGenerator */
public function getText():String {
return "Text for Android";
}
}
}
package com.illuzor.antbuilddemo.generators {
import com.illuzor.antbuilddemo.interfaces.IGenerator;
public class FlashPlayerTextGenerator implements IGenerator {
/* INTERFACE com.illuzor.antbuilddemo.interfaces.IGenerator */
public function getText():String {
return "Text for Flash Player";
}
}
}
package com.illuzor.antbuilddemo.generators {
import com.illuzor.antbuilddemo.interfaces.IGenerator;
public class IOSTextGenerator implements IGenerator {
/* INTERFACE com.illuzor.antbuilddemo.interfaces.IGenerator */
public function getText():String {
return "Text for IOS";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment