Extend content value to long. Improve design code.

This commit is contained in:
Christian P. MOMON 2013-09-24 16:23:34 +02:00
parent 7c94cda80c
commit 2368a10110

View file

@ -28,9 +28,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void appendAttribute(final String id, final String label, final int value) public void appendAttribute(final String id, final String label, final long value)
{ {
appendAttribute(id, label, (new Integer(value)).toString()); appendAttribute(id, label, String.valueOf(value));
} }
/** /**
@ -46,9 +46,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void appendContent(final String id, final int line, final int value) public void appendContent(final String id, final int line, final long value)
{ {
appendContent(id, line, (new Integer(value)).toString()); appendContent(id, line, String.valueOf(value));
} }
/** /**
@ -64,9 +64,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void appendContent(final String id, final int line, final String column, final int value) public void appendContent(final String id, final int line, final String column, final long value)
{ {
appendContent(id, line, column, (new Integer(value)).toString()); appendContent(id, line, column, String.valueOf(value));
} }
/** /**
@ -185,9 +185,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void setAttribute(final String id, final int line, final String label, final int value) public void setAttribute(final String id, final int line, final String label, final long value)
{ {
setAttribute(id, line, label, (new Integer(value)).toString()); setAttribute(id, line, label, String.valueOf(value));
} }
/** /**
@ -203,9 +203,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void setAttribute(final String id, final int line, final String column, final String label, final int value) public void setAttribute(final String id, final int line, final String column, final String label, final long value)
{ {
setAttribute(id, line, column, label, (new Integer(value)).toString()); setAttribute(id, line, column, label, String.valueOf(value));
} }
/** /**
@ -221,9 +221,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void setAttribute(final String id, final String label, final int value) public void setAttribute(final String id, final String label, final long value)
{ {
setAttribute(id, label, (new Integer(value)).toString()); setAttribute(id, label, String.valueOf(value));
} }
/** /**
@ -239,17 +239,9 @@ public class TagDataManager
/** /**
* *
*/ */
public void setContent(final String id, final int content) public void setContent(final String id, final int line, final long value)
{ {
setContent(id, (new Integer(content)).toString()); setContent(id, line, String.valueOf(value));
}
/**
*
*/
public void setContent(final String id, final int line, final int content)
{
setContent(id, line, (new Integer(content)).toString());
} }
/** /**
@ -262,14 +254,6 @@ public class TagDataManager
tag.setContent(content); tag.setContent(content);
} }
/**
*
*/
public void setContent(final String id, final int line, final String column, final int content)
{
setContent(id, line, column, (new Integer(content)).toString());
}
/** /**
* @TODO * @TODO
*/ */
@ -280,6 +264,14 @@ public class TagDataManager
// tag.setContent (content); // tag.setContent (content);
} }
/**
*
*/
public void setContent(final String id, final int line, final String column, final long value)
{
setContent(id, line, column, String.valueOf(value));
}
/** /**
* *
*/ */
@ -290,6 +282,14 @@ public class TagDataManager
tag.setContent(content); tag.setContent(content);
} }
/**
*
*/
public void setContent(final String id, final long value)
{
setContent(id, String.valueOf(value));
}
/** /**
* *
*/ */