⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 videoinformation.java

📁 模拟的土豆网视频网站
💻 JAVA
字号:
package cn.myvideosite.data.model.bean;

import java.util.Date;

public class VideoInformation implements Comparable<Object>{

	/**
	 * @param args视频信息表
	 */
	private int videoId;
	private int userId;
	private Date uploadTime;
	private String videoTitle;
	private int flowerNub;
	private int  channelId;
	private String introduction;
	private String flashAddress;
	private int score;
	private int ding;
	private String soureUrl;
	private String newUrl;
	private String headTitle;
	
	public VideoInformation() {
		super();
		
	}
	public VideoInformation( int userId,Date uploadTime, String videoTitle,int flowerNub,int  channelId,String introduction, 
			String flashAddress,int ding,int score,String headTitle ) {
		
		super();
		this.introduction = introduction;
		this.channelId = channelId;
		this.ding = ding;
		this.flashAddress = flashAddress;		
		this.videoTitle = videoTitle;
		this.flowerNub = flowerNub;
		this.score = score;
		this.uploadTime = uploadTime;
		this.userId = userId;
		this.headTitle=headTitle;
		
	}
	public VideoInformation( int videoId,int userId,Date uploadTime, String videoTitle,int flowerNub,int channelId,String introduction, 
			String flashAddress,int ding,int score ,String headTitle) {
		
		super();
		this.introduction = introduction;
		this.channelId = channelId;
		this.ding = ding;
		this.flashAddress = flashAddress;	
		this.videoTitle = videoTitle;
		this.flowerNub = flowerNub;
		this.score = score;
		this.uploadTime = uploadTime;
		this.userId = userId;
		this.videoId = videoId;
		this.headTitle=headTitle;
	}
	public VideoInformation( int videoId,int userId,Date uploadTime, String videoTitle,int flowerNub,int channelId,String introduction, 
			String flashAddress,int ding,int score,String soureUrl ,String newUrl,String headTitle) {
		
		super();
		this.introduction = introduction;
		this.channelId = channelId;
		this.ding = ding;
		this.flashAddress = flashAddress;	
		this.videoTitle = videoTitle;
		this.flowerNub = flowerNub;
		this.score = score;
		this.uploadTime = uploadTime;
		this.userId = userId;
		this.videoId = videoId;
		this.newUrl=newUrl;
		this.soureUrl=soureUrl;
		this.headTitle=headTitle;
	}

	public int getVideoId() {
		return videoId;
	}

	public void setVideoId(int videoId) {
		this.videoId = videoId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getVideoTitle() {
		return videoTitle;
	}

	public void setVideoTitle(String videoTitle) {
		this.videoTitle = videoTitle;
	}

	public int getFlowerNub() {
		return flowerNub;
	}

	public void setFlowerNub(int flowerNub) {
		this.flowerNub = flowerNub;
	}

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getFlashAddress() {
		return flashAddress;
	}

	public void setFlashAddress(String flashAddress) {
		this.flashAddress = flashAddress;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getDing() {
		return ding;
	}

	public void setDing(int ding) {
		this.ding = ding;
	}
	
    public String getSoureUrl() {
		return soureUrl;
	}
	public void setSoureUrl(String soureUrl) {
		this.soureUrl = soureUrl;
	}
	public String getNewUrl() {
		return newUrl;
	}
	public void setNewUrl(String newUrl) {
		this.newUrl = newUrl;
	}
	
	public String getHeadTitle() {
		return headTitle;
	}
	public void setHeadTitle(String headTitle) {
		this.headTitle = headTitle;
	}
	public String toString(){
    	StringBuffer sb=new StringBuffer("videoId");
    	      sb.append(videoId).append(",userId=").append(userId).append(",uploadTime=").append(uploadTime)
    	      .append(",videoTitle=").append(videoTitle).append(",flowerNub=").append(flowerNub).append(",channelId=").append(channelId).append(",introduction=")
    	      .append(introduction).append(",flashAddress=").append(flashAddress).append(",score=").append(score).append(",ding=").append(ding).append(",soureUrl=")
    	      .append(soureUrl).append(",newUrl=").append(newUrl).append(",headTitle=").append(headTitle);
    	return sb.toString();
    }
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((flashAddress == null) ? 0 : flashAddress.hashCode());
		result = prime * result + videoId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		VideoInformation other = (VideoInformation) obj;
		if (flashAddress == null) {
			if (other.flashAddress != null)
				return false;
		} else if (!flashAddress.equals(other.flashAddress))
			return false;
		if (videoId != other.videoId)
			return false;
		return true;
	}
	
	public int compareTo(Object o) {
		VideoInformation other=(VideoInformation)o;
		if(videoId<other.videoId) return -1;
		else if(videoId>other.videoId)return 1;
		return 0;
	}	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -