Skip to content

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
neworld committed Mar 22, 2018
1 parent 7516424 commit 7fe5e35
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ package lt.neworld.spanner

import android.text.style.AbsoluteSizeSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class AbsoluteSizeSpanBuilder(private val size: Int, private val dip: Boolean) : SpanBuilder {
override fun build(): Any = AbsoluteSizeSpan(size, dip)
}
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/AlignmentSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ package lt.neworld.spanner
import android.text.Layout
import android.text.style.AlignmentSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class AlignmentSpanBuilder(private val alignment: Layout.Alignment) : SpanBuilder {
override fun build(): Any = AlignmentSpan.Standard(alignment)
}
5 changes: 0 additions & 5 deletions lib/src/main/java/lt/neworld/spanner/BulletSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ package lt.neworld.spanner
import android.support.annotation.ColorInt
import android.text.style.BulletSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/

internal class BulletSpanBuilder(private val gapWidth: Int?, @ColorInt private val color: Int?) : SpanBuilder {
override fun build(): Any {
return if (gapWidth != null && color != null) {
Expand Down
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/ClickSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ package lt.neworld.spanner
import android.text.style.ClickableSpan
import android.view.View

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class ClickSpanBuilder(private val clickListener: View.OnClickListener) : SpanBuilder {
override fun build(): Any = EasyClickableSpan(clickListener)

Expand Down
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/ColorSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import android.support.annotation.ColorInt
import android.text.style.BackgroundColorSpan
import android.text.style.ForegroundColorSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class ColorSpanBuilder(private val type: Int, @ColorInt private val color: Int) : SpanBuilder {
override fun build(): Any {
return when (type) {
Expand Down
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/ImageSpan.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
package lt.neworld.spanner

/**
* @author Andrius Semionovas
* @since 2017-10-01
*/
class ImageSpan internal constructor(builder: SpanBuilder) : Span(builder)
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/ImageSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import android.graphics.drawable.Drawable
import android.text.style.DrawableMarginSpan
import android.text.style.IconMarginSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class ImageSpanBuilder(private val drawable: Drawable?, private val bitmap: Bitmap?, private val pad: Int?) : SpanBuilder {
override fun build(): Any {
return if (drawable != null && pad != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ package lt.neworld.spanner

import android.text.style.LeadingMarginSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class LeadingMarginSpanBuilder(private val everyOrFirst: Int, private val rest: Int?) : SpanBuilder {
override fun build(): Any {
return if (rest != null) {
Expand Down
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/QuoteSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ package lt.neworld.spanner
import android.support.annotation.ColorInt
import android.text.style.QuoteSpan

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/
internal class QuoteSpanBuilder(@ColorInt private val color: Int?) : SpanBuilder {
override fun build(): Any {
return if (color == null) {
Expand Down
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/Span.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package lt.neworld.spanner

/**
* @author Andrius Semionovas
* @since 2017-10-01
*/
open class Span internal constructor(private val builder: SpanBuilder) {
internal fun buildSpan() = builder.build()
}
5 changes: 0 additions & 5 deletions lib/src/main/java/lt/neworld/spanner/SpanBuilder.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package lt.neworld.spanner;

/**
* @author Andrius Semionovas
* @since 2017-10-01
*/

public interface SpanBuilder {
Object build();
}
4 changes: 0 additions & 4 deletions lib/src/main/java/lt/neworld/spanner/Spanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import android.support.annotation.RequiresApi
import android.text.SpannableStringBuilder
import android.text.TextUtils

/**
* @author Andrius Semionovas
* @since 2017-08-01
*/
class Spanner(text: CharSequence?) : SpannableStringBuilder(text) {
constructor() : this("")

Expand Down
5 changes: 0 additions & 5 deletions lib/src/main/java/lt/neworld/spanner/Spans.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@
import android.widget.TextView;
import java.util.Locale;

/**
* @author Andrius Semionovas
* @since 2017-10-01
*/

public class Spans {
private Spans() {
//hide
Expand Down
5 changes: 0 additions & 5 deletions lib/src/main/java/lt/neworld/spanner/StyleSpanBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ package lt.neworld.spanner
import android.text.style.StyleSpan
import java.util.*

/**
* @author Andrius Semionovas
* @since 2017-10-11
*/

internal class StyleSpanBuilder(private val style: Int) : SpanBuilder {
override fun build(): Any = StyleSpan(style)
}

0 comments on commit 7fe5e35

Please sign in to comment.