Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bassel Dib
Library
Commits
c5c9adb7
Commit
c5c9adb7
authored
11 months ago
by
Bassel Dib
Browse files
Options
Downloads
Patches
Plain Diff
Delete Article.java
parent
1cad7d1b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/Article.java
+0
-65
0 additions, 65 deletions
src/main/java/Article.java
with
0 additions
and
65 deletions
src/main/java/Article.java
deleted
100644 → 0
+
0
−
65
View file @
1cad7d1b
package
org.example
;
import
java.util.List
;
public
class
Article
{
private
String
titleTestiflargerthantwentychar
;
private
String
author
;
private
List
<
String
>
authors
;
private
String
dateOfPublication
;
private
String
Summery
;
private
String
content
;
private
int
likesCount
;
private
int
readCount
;
public
Article
()
{
}
public
Article
(
String
aTitle
,
List
<
String
>
aAuther
,
String
aDateOfPublication
,
String
aSummery
,
String
aContent
){
titleTestiflargerthantwentychar
=
aTitle
;
authors
=
aAuther
;
dateOfPublication
=
aDateOfPublication
;
Summery
=
aSummery
;
content
=
aContent
;
likesCount
=
0
;
readCount
=
0
;
}
public
void
increaseArticleLikes
(
Article
obj
){
obj
.
likesCount
++;
}
public
void
increaseArticleRead
(
Article
obj
){
this
.
readCount
++;
}
@Override
public
String
toString
()
{
return
"Article{"
+
"title='"
+
titleTestiflargerthantwentychar
+
'\''
+
", author='"
+
authors
+
'\''
+
", dateOfPublication="
+
dateOfPublication
+
", summery="
+
Summery
+
", content="
+
content
+
'}'
;
}
public
int
getLikesCount
()
{
return
likesCount
;
}
public
int
getReadCount
()
{
return
readCount
;
}
public
String
getTitleTestiflargerthantwentychar
()
{
return
titleTestiflargerthantwentychar
;
}
public
String
getAuthor
()
{
return
author
;
}
public
String
getDateOfPublication
()
{
return
dateOfPublication
;
}
public
String
getSummery
()
{
return
Summery
;
}
public
String
getContent
()
{
return
content
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment